From 640b2bd953326adbf98ba04dd2ad7e59fb6c8193 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 5 Aug 2007 14:19:13 +0000 Subject: made so that you can bind the server to a specific address --- src/engine/client/client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/engine/client') diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index fa00dcc1..e864a24f 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -784,7 +784,9 @@ static void client_run(const char *direct_connect_server) modmenu_init(); // TODO: remove // open socket - net.open(0, 0); + NETADDR4 bindaddr; + mem_zero(&bindaddr, sizeof(bindaddr)); + net.open(bindaddr, 0); // net_host_lookup(config.masterserver, MASTERSERVER_PORT, &master_server); -- cgit 1.4.1