aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.org> 2015-10-02 10:40:05 +0200
committerGravatar Sven Nierlein <sven@nierlein.org> 2015-10-02 10:40:05 +0200
commit5818a3f24d21bd2905bd1d1ecc2ba11c6bf59678 (patch)
tree82a76e402f0ac39070453d75132e2d1dc08d594a /plugins
parentd73c57aa061a4c408701f980d1f8857b64433488 (diff)
parent6a682b379f1b6ef920cae79fae71b38b99dff39d (diff)
downloadmonitoring-plugins-5818a3f24d21bd2905bd1d1ecc2ba11c6bf59678.tar.gz
Merge pull request #1343 from awiddersheim/ipv6/check_fping
check_fping: autodetect ipv6 addresses
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_fping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 46046b4f..274dd753 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -105,7 +105,7 @@ main (int argc, char **argv)
xasprintf(&option_string, "%s-I %s ", option_string, sourceif);
#ifdef PATH_TO_FPING6
- if (address_family == AF_INET6)
+ if (address_family != AF_INET && is_inet6_addr(server))
fping_prog = strdup(PATH_TO_FPING6);
else
fping_prog = strdup(PATH_TO_FPING);