wow --help my beloved is here
This commit is contained in:
parent
c83c02f4f1
commit
812d977fcc
4 changed files with 22 additions and 7 deletions
|
|
@ -27,7 +27,6 @@ func GetLocalIP() string {
|
|||
return ""
|
||||
}
|
||||
for _, address := range addrs {
|
||||
// check the address type and if it is not a loopback the display it
|
||||
if ipnet, ok := address.(*net.IPNet); ok && !ipnet.IP.IsLoopback() {
|
||||
if ipnet.IP.To4() != nil {
|
||||
return ipnet.IP.String()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue