From a99a38a3ad8012803118a3b92b20024f28b6e29b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 16 Jan 2023 23:19:56 +0000 Subject: Allow creating a FailedPort without a bindspec. --- src/configreader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index baa109d05..d6a584540 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -434,8 +434,10 @@ void ServerConfig::Apply(ServerConfig* old, const std::string& useruid) errstr << "Warning! Some of your listener" << (pl.size() == 1 ? "s" : "") << " failed to bind:" << std::endl; for (const auto& fp : pl) { - errstr << " " << fp.sa.str() << ": " << fp.error << std::endl - << " " << "Created from tag at " << fp.tag->source.str() << std::endl; + if (fp.sa.family() != AF_UNSPEC) + errstr << " " << fp.sa.str() << ": "; + + errstr << fp.error << std::endl << " " << "Created from tag at " << fp.tag->source.str() << std::endl; } } } -- cgit v1.3.1-10-gc9f91