diff options
author | rubidium <rubidium@openttd.org> | 2013-11-14 19:31:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-14 19:31:10 +0000 |
commit | c40f2815457e322c63f86a3c9eff257ff554cf9c (patch) | |
tree | e992b23ab33fccd1b802abd26348ae4527d9b1f8 /src/network | |
parent | 079b2643de9da46fc965a536c3748f1ab0bfd412 (diff) | |
download | openttd-c40f2815457e322c63f86a3c9eff257ff554cf9c.tar.xz |
(svn r25997) -Codechange: make it slightly more clear what ports are coming from where in the debug output when listening
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index 9601df50f..57a6412c6 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -713,12 +713,17 @@ bool NetworkServerStart() NetworkDisconnect(false, false); NetworkInitialize(false); + DEBUG(net, 1, "starting listeners for clients"); if (!ServerNetworkGameSocketHandler::Listen(_settings_client.network.server_port)) return false; /* Only listen for admins when the password isn't empty. */ - if (!StrEmpty(_settings_client.network.admin_password) && !ServerNetworkAdminSocketHandler::Listen(_settings_client.network.server_admin_port)) return false; + if (!StrEmpty(_settings_client.network.admin_password)) { + DEBUG(net, 1, "starting listeners for admins"); + if (!ServerNetworkAdminSocketHandler::Listen(_settings_client.network.server_admin_port)) return false; + } /* Try to start UDP-server */ + DEBUG(net, 1, "starting listeners for incoming server queries"); _network_udp_server = _udp_server_socket->Listen(); _network_company_states = CallocT<NetworkCompanyState>(MAX_COMPANIES); |