diff options
author | Andrey Nazarov <skuller@skuller.net> | 2009-09-04 08:39:25 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2009-09-04 08:39:25 +0000 |
commit | a30a77585369de0b9cb161f585fe7f787bc4c643 (patch) | |
tree | a97df9c6d5e98cb049ed2b26ed82a0ccddc97f46 /source/net_common.c | |
parent | 36e7aedc1723b759b9b764f98bd1679bdcdec110 (diff) |
Allow ‘a.b.c’, ‘a.b’ and ‘a’ IP address notations in NET_StringToSockaddr.
Diffstat (limited to 'source/net_common.c')
-rw-r--r-- | source/net_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/net_common.c b/source/net_common.c index 5c9172e..472d772 100644 --- a/source/net_common.c +++ b/source/net_common.c @@ -217,7 +217,7 @@ static qboolean NET_StringToSockaddr( const char *s, struct sockaddr_in *sadr ) break; } } - if( *p == 0 && dots == 3 ) { + if( *p == 0 && dots <= 3 ) { uint32_t addr = inet_addr( copy ); if( addr == INADDR_NONE ) { |