TUN-9755: Set endpoint in tunnel credentials when generating locally managed tunnel with a Fed token
* TUN-9755: Set endpoint in tunnel credentials when generating locally managed tunnel with a Fed token Closes TUN-9755
This commit is contained in:
parent
f9c2bd51ae
commit
9e6d58aaea
|
|
@ -155,10 +155,12 @@ func (sc *subcommandContext) create(name string, credentialsFilePath string, sec
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
tunnelCredentials := connection.Credentials{
|
tunnelCredentials := connection.Credentials{
|
||||||
AccountTag: credential.AccountID(),
|
AccountTag: credential.AccountID(),
|
||||||
TunnelSecret: tunnelSecret,
|
TunnelSecret: tunnelSecret,
|
||||||
TunnelID: tunnel.ID,
|
TunnelID: tunnel.ID,
|
||||||
|
Endpoint: credential.Endpoint(),
|
||||||
}
|
}
|
||||||
usedCertPath := false
|
usedCertPath := false
|
||||||
if credentialsFilePath == "" {
|
if credentialsFilePath == "" {
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ func (c User) AccountID() string {
|
||||||
return c.cert.AccountID
|
return c.cert.AccountID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c User) Endpoint() string {
|
||||||
|
return c.cert.Endpoint
|
||||||
|
}
|
||||||
|
|
||||||
func (c User) ZoneID() string {
|
func (c User) ZoneID() string {
|
||||||
return c.cert.ZoneID
|
return c.cert.ZoneID
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue