From 5a378e8954717c19deaa618fc326164680383505 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 28 Aug 2017 19:28:53 +0100 Subject: Change FailedPortList to store a sockaddrs/int instead of string. --- src/configreader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 696035a74..cc478b9b6 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -615,8 +615,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) int j = 1; for (FailedPortList::iterator i = pl.begin(); i != pl.end(); i++, j++) { - errstr << j << ".\tAddress: " << (i->first.empty() ? "" : i->first.c_str()) << "\tReason: " - << i->second << std::endl; + errstr << j << ".\tAddress: " << i->first.str() << "\tReason: " << strerror(i->second) << std::endl; } } } -- cgit v1.3.1-10-gc9f91