server: don't warn when port 0 requested

cf. 4a6c468f9f
This commit is contained in:
Michael Davidsaver
2021-04-25 12:15:59 -07:00
parent ab30a9430e
commit 23004f8912
+1 -1
View File
@@ -361,7 +361,7 @@ ServIface::ServIface(const std::string& addr, unsigned short port, server::Serve
name = bind_addr.tostring();
if(bind_addr.port() != orig_port) {
if(orig_port && bind_addr.port() != orig_port) {
log_warn_printf(connsetup, "Server unable to bind port %u, falling back to %s\n", orig_port, name.c_str());
}