summaryrefslogtreecommitdiffstats
path: root/plugins/netutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/netutils.c')
-rw-r--r--plugins/netutils.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/netutils.c b/plugins/netutils.c
index a3a241d2..9294f3a2 100644
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
@@ -324,14 +324,12 @@ int
324is_addr (const char *address) 324is_addr (const char *address)
325{ 325{
326#ifdef USE_IPV6 326#ifdef USE_IPV6
327 if (is_inet_addr (address) && address_family != AF_INET6) 327 if (address_family == AF_INET && is_inet_addr (address))
328 return TRUE;
329 else if (address_family == AF_INET6 && is_inet6_addr (address))
330 return TRUE;
328#else 331#else
329 if (is_inet_addr (address)) 332 if (is_inet_addr (address))
330#endif
331 return (TRUE);
332
333#ifdef USE_IPV6
334 if (is_inet6_addr (address) && address_family != AF_INET)
335 return (TRUE); 333 return (TRUE);
336#endif 334#endif
337 335