diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-08-05 14:19:13 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-08-05 14:19:13 +0000 |
| commit | 640b2bd953326adbf98ba04dd2ad7e59fb6c8193 (patch) | |
| tree | 7e3b954333071f364df74a6c468050487246d725 /src/engine/client/client.cpp | |
| parent | fc4d7eef92679652278a562da07cef0fa316d358 (diff) | |
| download | zcatch-640b2bd953326adbf98ba04dd2ad7e59fb6c8193.tar.gz zcatch-640b2bd953326adbf98ba04dd2ad7e59fb6c8193.zip | |
made so that you can bind the server to a specific address
Diffstat (limited to 'src/engine/client/client.cpp')
| -rw-r--r-- | src/engine/client/client.cpp | 4 |
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); |