aboutsummaryrefslogtreecommitdiff
path: root/weed/util/network.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-09-14 10:37:06 -0700
committerChris Lu <chris.lu@gmail.com>2021-09-14 10:37:06 -0700
commit2789d10342b89691898ae1da774842c5b1ad261d (patch)
tree9b9be0e84e7d546c48a139d98b56ec288e1fda7b /weed/util/network.go
parent119d5908dd52b159c275bad10007daaf62188df0 (diff)
downloadseaweedfs-2789d10342b89691898ae1da774842c5b1ad261d.tar.xz
seaweedfs-2789d10342b89691898ae1da774842c5b1ad261d.zip
go fmt
Diffstat (limited to 'weed/util/network.go')
-rw-r--r--weed/util/network.go6
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
+}