remove AddressFamily.Either()

This commit is contained in:
Darien Raymond committed 2018-11-16 11:13:36 +01:00
1 parent a01fdc29a6
commit 2364f5f280
4 files changed
+8 -13

No files matched your search

+1 -1
View File
@@ -144,7 +144,7 @@ func (m *MultiGeoIPMatcher) Apply(ctx context.Context) bool {
dest := m.destFunc(ctx)
if dest.IsValid() && (dest.Address.Family().IsIPv4() || dest.Address.Family().IsIPv6()) {
if dest.IsValid() && dest.Address.Family().IsIP() {
ips = append(ips, dest.Address.IP())
} else if resolver, ok := ResolvedIPsFromContext(ctx); ok {
resolvedIPs := resolver.Resolve()