diff options
-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 ) { |