aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-12 18:32:29 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-12 18:32:29 +0000
commit6061fb0c3d5fb4f409782e411cfdaf0510243eb1 (patch)
treed6e66c26838b9c926dbf8cf3b61b7b9d3fbd3cc0 /code
parenta2a2f54a039a8e83e284cfedf4695c7bb0ab5c13 (diff)
downloadioquake3-aero-6061fb0c3d5fb4f409782e411cfdaf0510243eb1.tar.gz
ioquake3-aero-6061fb0c3d5fb4f409782e411cfdaf0510243eb1.zip
show numeric address the server binds to
git-svn-id: svn://svn.icculus.org/quake3/trunk@1385 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/qcommon/net_ip.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c
index 636c98a..50eddf8 100644
--- a/code/qcommon/net_ip.c
+++ b/code/qcommon/net_ip.c
@@ -780,7 +780,7 @@ int NET_IPSocket( char *net_interface, int port, int *err ) {
Com_Printf( "Opening IP socket: %s:%i\n", net_interface, port );
}
else {
- Com_Printf( "Opening IP socket: localhost:%i\n", port );
+ Com_Printf( "Opening IP socket: 0.0.0.0:%i\n", port );
}
if( ( newsocket = socket( PF_INET, SOCK_DGRAM, IPPROTO_UDP ) ) == INVALID_SOCKET ) {
@@ -804,7 +804,7 @@ int NET_IPSocket( char *net_interface, int port, int *err ) {
// return newsocket;
}
- if( !net_interface || !net_interface[0] || !Q_stricmp(net_interface, "localhost") ) {
+ if( !net_interface || !net_interface[0]) {
address.sin_family = AF_INET;
address.sin_addr.s_addr = INADDR_ANY;
}
@@ -855,7 +855,7 @@ int NET_IP6Socket( char *net_interface, int port, struct sockaddr_in6 *bindto, i
Com_Printf( "Opening IP6 socket: %s:%i\n", net_interface, port );
}
else
- Com_Printf( "Opening IP6 socket: localhost:%i\n", port );
+ Com_Printf( "Opening IP6 socket: [::]:%i\n", port );
if( ( newsocket = socket( PF_INET6, SOCK_DGRAM, IPPROTO_UDP ) ) == INVALID_SOCKET ) {
*err = socketError;
@@ -884,7 +884,7 @@ int NET_IP6Socket( char *net_interface, int port, struct sockaddr_in6 *bindto, i
}
#endif
- if( !net_interface || !net_interface[0] || !Q_stricmp(net_interface, "localhost") ) {
+ if( !net_interface || !net_interface[0]) {
address.sin6_family = AF_INET6;
address.sin6_addr = in6addr_any;
}
@@ -1316,8 +1316,8 @@ void NET_OpenIP( void ) {
int port;
int port6;
- net_ip = Cvar_Get( "net_ip", "localhost", CVAR_LATCH );
- net_ip6 = Cvar_Get( "net_ip6", "localhost", CVAR_LATCH );
+ net_ip = Cvar_Get( "net_ip", "0.0.0.0", CVAR_LATCH );
+ net_ip6 = Cvar_Get( "net_ip6", "::", CVAR_LATCH );
net_port = Cvar_Get( "net_port", va( "%i", PORT_SERVER ), CVAR_LATCH );
net_port6 = Cvar_Get( "net_port6", va( "%i", PORT_SERVER ), CVAR_LATCH );