From 0b579a345617b0376dc3c30c09316246b9b74525 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 24 Sep 2007 00:30:14 +0000 Subject: Let ./configure --without-ipv6 suppress non-IPv4 DNS lookups (noted by Mark Frost on nagios-users@) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1794 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/netutils.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins') diff --git a/plugins/netutils.c b/plugins/netutils.c index e6ffc548..7bf22543 100644 --- a/plugins/netutils.c +++ b/plugins/netutils.c @@ -39,7 +39,11 @@ unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; int econn_refuse_state = STATE_CRITICAL; int was_refused = FALSE; +#if USE_IPV6 int address_family = AF_UNSPEC; +#else +int address_family = AF_INET; +#endif /* handles socket timeouts */ void -- cgit v1.2.3-74-g34f1