Ver código fonte

Using hostname in allowed_hosts gives error message from IPv6 address parser

Fix for issue http://tracker.nagios.org/view.php?id=669

Commented out the "Invalid IPv6 address" syslog call. While it might
be nice to know, at this point we don't know if it's an address or
a hostname. So the error message is pretty much useless.
John C. Frickson 9 anos atrás
pai
commit
b04f8ccb87
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/acl.c

+ 1 - 1
src/acl.c

@@ -282,7 +282,7 @@ int add_ipv6_to_acl(char *ipv6) {
 	addrtok = strtok(ipv6tmp, "/");
 #endif
 	if(inet_pton(AF_INET6, addrtok, &addr) <= 0) {
-		syslog(LOG_ERR, "Invalid IPv6 address in ACL: %s\n", ipv6);
+		/* syslog(LOG_ERR, "Invalid IPv6 address in ACL: %s\n", ipv6); */
 		free(ipv6tmp);
 		return 0;
 		}