author | Alberto Bertogli
<albertito@blitiri.com.ar> 2019-10-18 19:21:50 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2019-10-18 19:21:50 UTC |
parent | e0c6b612444ec0453947a55842c3aa776c55efc8 |
spf.go | +2 | -5 |
diff --git a/spf.go b/spf.go index 931c38f..cca0239 100644 --- a/spf.go +++ b/spf.go @@ -493,12 +493,9 @@ func ipMatch(ip, tomatch net.IP, masks dualMasks) (bool, error) { return false, errInvalidMask } return ipnet.Contains(ip), nil - } else { - if ip.Equal(tomatch) { - return true, nil - } - return false, nil } + + return ip.Equal(tomatch), nil } var aRegexp = regexp.MustCompile(`^[aA](:([^/]+))?(/(\w+))?(//(\w+))?$`)