diff options
Diffstat (limited to 'plugins/netutils.c')
-rw-r--r-- | plugins/netutils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/netutils.c b/plugins/netutils.c index 60410c64..ea004bb4 100644 --- a/plugins/netutils.c +++ b/plugins/netutils.c | |||
@@ -326,7 +326,11 @@ is_host (char *address) | |||
326 | int | 326 | int |
327 | is_addr (char *address) | 327 | is_addr (char *address) |
328 | { | 328 | { |
329 | #ifdef USE_IPV6 | ||
329 | if (is_inet_addr (address) && address_family != AF_INET6) | 330 | if (is_inet_addr (address) && address_family != AF_INET6) |
331 | #else | ||
332 | if (is_inet_addr (address)) | ||
333 | #endif | ||
330 | return (TRUE); | 334 | return (TRUE); |
331 | 335 | ||
332 | #ifdef USE_IPV6 | 336 | #ifdef USE_IPV6 |