go fmt
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user