summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/SocketListener.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/SocketListener.cpp b/src/server/SocketListener.cpp
index 8eca2d60..b00a5c79 100644
--- a/src/server/SocketListener.cpp
+++ b/src/server/SocketListener.cpp
@@ -55,8 +55,7 @@ SocketListener::ingen_listen(Engine* engine,
// Bind TCP socket
const int port = world->conf().option("engine-port").get<int32_t>();
std::ostringstream ss;
- ss << "tcp://localhost:";
- ss << port;
+ ss << "tcp://*:" << port;
if (!net_sock->bind(Raul::URI(ss.str())) || !net_sock->listen()) {
world->log().error("Failed to create TCP socket\n");
net_sock->close();