netutil: consistently format ipv6 addresses
This formats ipv6 addresses to ensure they can be compared safely Signed-off-by: kidsan <8798449+Kidsan@users.noreply.github.com>
This commit is contained in:
@ -103,7 +103,7 @@ func resolveURL(ctx context.Context, lg *zap.Logger, u url.URL) (string, error)
|
||||
)
|
||||
return "", err
|
||||
}
|
||||
if host == "localhost" || net.ParseIP(host) != nil {
|
||||
if host == "localhost" {
|
||||
return "", nil
|
||||
}
|
||||
for ctx.Err() == nil {
|
||||
|
Reference in New Issue
Block a user