1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

fix issue

This commit is contained in:
Timothy 2020-02-06 15:21:13 +08:00
parent 5ed9f8ce68
commit 168ef4585a
No known key found for this signature in database
GPG Key ID: DA25A2861AA0F2D1

View File

@ -93,15 +93,11 @@ func GetIPFromInterface(configuration *Settings) (string, error) {
continue
}
} else {
if configuration.IPType != IPV6 {
if strings.ToUpper(configuration.IPType) != IPV6 {
continue
}
}
if !isIPv4(ip.String()) {
continue
}
return ip.String(), nil
}