mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 00:33:28 -04:00
Fix ipv6 address advertisement
This commit is contained in:
parent
13739c886a
commit
fb92a7a802
1 changed files with 5 additions and 0 deletions
|
|
@ -354,6 +354,11 @@ func (c *ServerCommand) detectAdvertise(detect physical.AdvertiseDetect,
|
|||
return "", err
|
||||
}
|
||||
|
||||
// set [] for ipv6 addresses
|
||||
if strings.Contains(host, ":") && !strings.Contains(host, "]") {
|
||||
host = "[" + host + "]"
|
||||
}
|
||||
|
||||
// Default the port and scheme
|
||||
scheme := "https"
|
||||
port := 8200
|
||||
|
|
|
|||
Loading…
Reference in a new issue