summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-08-28 19:28:53 +0100
committerPeter Powell <petpow@saberuk.com>2017-09-12 15:05:24 +0100
commit5a378e8954717c19deaa618fc326164680383505 (patch)
tree079cdd528cd3f0da2408da9854307db39bd0c8b8 /src/configreader.cpp
parentfb13dca410541f01db84287f2721d1e256eaf2b5 (diff)
Change FailedPortList to store a sockaddrs/int instead of string.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp3
1 files changed, 1 insertions, 2 deletions
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() ? "<all>" : i->first.c_str()) << "\tReason: "
- << i->second << std::endl;
+ errstr << j << ".\tAddress: " << i->first.str() << "\tReason: " << strerror(i->second) << std::endl;
}
}
}