server config expand

This commit is contained in:
Michael Davidsaver
2020-02-18 18:17:53 -08:00
parent 772cc5297c
commit d6a4865a05
5 changed files with 111 additions and 63 deletions
+6 -2
View File
@@ -308,7 +308,9 @@ std::ostream& operator<<(std::ostream& strm, const SockAddr& addr)
} else {
strm<<"<\?\?\?>";
}
strm<<buf<<':'<<ntohs(addr->in.sin_port);
strm<<buf;
if(ntohs(addr->in.sin_port))
strm<<':'<<ntohs(addr->in.sin_port);
break;
}
#ifdef AF_INET6
@@ -319,7 +321,9 @@ std::ostream& operator<<(std::ostream& strm, const SockAddr& addr)
} else {
strm<<"<\?\?\?>";
}
strm<<buf<<':'<<ntohs(addr->in6.sin6_port);
strm<<buf;
if(ntohs(addr->in6.sin6_port))
strm<<':'<<ntohs(addr->in6.sin6_port);
break;
}
#endif