improve syslog in PinholeVerification()

This commit is contained in:
Thomas Bernard 2020-06-05 10:19:15 +02:00
parent d5ba9c368e
commit 3716381308
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
1 changed files with 3 additions and 2 deletions

View File

@ -1555,14 +1555,15 @@ PinholeVerification(struct upnphttp * h, char * int_ip, unsigned short int_port)
freeaddrinfo(ai); freeaddrinfo(ai);
if (!found) if (!found)
{ {
syslog(LOG_ERR, "Failed to convert hostname '%s' to IPv6 address", int_ip); syslog(LOG_NOTICE, "No IPv6 address for hostname '%s'", int_ip);
SoapError(h, 402, "Invalid Args"); SoapError(h, 402, "Invalid Args");
return -1; return -1;
} }
} }
else else
{ {
syslog(LOG_ERR, "Failed to convert hostname '%s' to ip address", int_ip); syslog(LOG_WARNING, "Failed to convert hostname '%s' to IP address : %s",
int_ip, gai_strerror(n));
SoapError(h, 402, "Invalid Args"); SoapError(h, 402, "Invalid Args");
return -1; return -1;
} }