mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
fix issue
This commit is contained in:
parent
5ed9f8ce68
commit
168ef4585a
6
utils.go
6
utils.go
@ -93,15 +93,11 @@ func GetIPFromInterface(configuration *Settings) (string, error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if configuration.IPType != IPV6 {
|
if strings.ToUpper(configuration.IPType) != IPV6 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !isIPv4(ip.String()) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
return ip.String(), nil
|
return ip.String(), nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user