about summary refs log tree commit diff
path: root/src/engine/client/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/client/client.cpp')
-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);