Skip to content

Commit

Permalink
server: fix ipv6 advertise addr
Browse files Browse the repository at this point in the history
  • Loading branch information
andydunstall committed May 4, 2024
1 parent 8c1ce9a commit dcc8b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func advertiseAddrFromBindAddr(bindAddr string) (string, error) {
return "", fmt.Errorf("invalid bind addr: %s: %w", bindAddr, err)
}

if host == "0.0.0.0" {
if host == "0.0.0.0" || host == "::" {
ip, err := sockaddr.GetPrivateIP()
if err != nil {
return "", fmt.Errorf("get interface addr: %w", err)
Expand Down

0 comments on commit dcc8b14

Please sign in to comment.