From f75e7079c7399bbbaeee202594505e309539afcf Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sat, 12 Feb 2011 01:04:53 +0100 Subject: Added a (temporary) log message into IpValidator to track listener setup problems with IPv4 vs IPv6. --- setup.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setup.cpp') diff --git a/setup.cpp b/setup.cpp index 3fda77c..8f759a3 100644 --- a/setup.cpp +++ b/setup.cpp @@ -175,6 +175,8 @@ namespace { struct in6_addr buf; struct in_addr buf4; + esyslog( "INFO: validating live server ip '%s'", ip.c_str()); + cerr << "INFO: validating server ip '" << ip << "'" << endl; bool valid = inet_aton(ip.c_str(), &buf4) || inet_pton(AF_INET6, ip.c_str(), &buf); if (!valid) { -- cgit v1.2.3