NagiosEnterprises / nrpe

NRPE Agent
GNU General Public License v2.0
263 stars 134 forks source link

Fix allowed_hosts for DNS names of IPv6-capable hosts #163

Closed dombenson closed 4 years ago

dombenson commented 7 years ago

Add some equivalent debug for IPv6 as for IPv4, ultimately find &host being an address of the pointer to the test address data, rather than a pointer to the address data itself. Add a filter to not test against getaddrinfo records of the wrong proto type. Noticed debugs printing the inet_ntoa of an ip6_addr - which could potentially match against a totally incorrect host.

sawolf commented 4 years ago

Thanks for the contribution! This looks good to me.