wow --help my beloved is here

This commit is contained in:
echo 2022-12-25 09:37:48 +03:30
parent c83c02f4f1
commit 812d977fcc
4 changed files with 22 additions and 7 deletions

View file

@ -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()