diff options
Diffstat (limited to 'weed/util/network.go')
| -rw-r--r-- | weed/util/network.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/util/network.go b/weed/util/network.go index 43b4a794d..687b6ec22 100644 --- a/weed/util/network.go +++ b/weed/util/network.go @@ -15,11 +15,11 @@ func DetectedHostAddress() string { return "" } - if v4Address := selectIpV4(netInterfaces, true); v4Address != ""{ + if v4Address := selectIpV4(netInterfaces, true); v4Address != "" { return v4Address } - if v6Address := selectIpV4(netInterfaces, false); v6Address != ""{ + if v6Address := selectIpV4(netInterfaces, false); v6Address != "" { return v6Address } @@ -59,4 +59,4 @@ func JoinHostPort(host string, port int) string { return host + ":" + portStr } return net.JoinHostPort(host, portStr) -}
\ No newline at end of file +} |
