summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_ifstatus.pl
diff options
context:
space:
mode:
authorJacob Hansen <jhansen@op5.com>2018-12-06 15:33:34 +0000
committerJacob Hansen <jhansen@op5.com>2018-12-07 09:51:21 +0000
commit0882b4201bfa0608b90448c4866b571a20e1fd66 (patch)
tree1de258e676765c7b895c7e73b4aebc526ca09511 /plugins-scripts/check_ifstatus.pl
parente5eccb663efb40c010ed608f5900b341592cfa68 (diff)
downloadmonitoring-plugins-0882b42.tar.gz
check_icmp: Correctly set address_family on lookup
If a hostname is supplied instead of an IP address, the automatic address family detection would fail to correctly set the IP protocol version (it would always be IPv6). We now supply AF_UNSPEC to getaddrinfo, which should then return the correct address family in the result. Signed-off-by: Jacob Hansen <jhansen@op5.com>
Diffstat (limited to 'plugins-scripts/check_ifstatus.pl')
0 files changed, 0 insertions, 0 deletions