mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
fix bug of get ip from interface
This commit is contained in:
parent
09503d0c97
commit
20c2b96765
2
utils.go
2
utils.go
@ -95,7 +95,7 @@ func GetIPFromInterface(configuration *Settings) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if isIPv4(ip.String()) {
|
if isIPv4(ip.String()) {
|
||||||
if strings.ToUpper(configuration.IPType) == IPV4 {
|
if strings.ToUpper(configuration.IPType) != IPV4 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user