Fix ipv6 address advertisement
This commit is contained in:
parent
49d2793acc
commit
e8e492f574
|
@ -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 New Issue