about summary refs log tree commit diff
path: root/src/engine/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-08-05 14:19:13 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-08-05 14:19:13 +0000
commit640b2bd953326adbf98ba04dd2ad7e59fb6c8193 (patch)
tree7e3b954333071f364df74a6c468050487246d725 /src/engine/client
parentfc4d7eef92679652278a562da07cef0fa316d358 (diff)
downloadzcatch-640b2bd953326adbf98ba04dd2ad7e59fb6c8193.tar.gz
zcatch-640b2bd953326adbf98ba04dd2ad7e59fb6c8193.zip
made so that you can bind the server to a specific address
Diffstat (limited to 'src/engine/client')
-rw-r--r--src/engine/client/client.cpp4
1 files changed, 3 insertions, 1 deletions
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);