1
0
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:
Jemy Zhang 2020-05-05 16:11:47 +08:00
parent 09503d0c97
commit 20c2b96765

View File

@ -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 {