diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_utils.c b/src/game/g_utils.c index 665cab3f..9e53fe7d 100644 --- a/src/game/g_utils.c +++ b/src/game/g_utils.c @@ -950,11 +950,13 @@ qboolean G_AddressParse( const char *str, addr_t *addr ) p = addr6parse( str, addr ); max = 128; } - else + else if( strchr( str, '.' ) ) { p = addr4parse( str, addr ); max = 32; } + else + return qfalse; Q_strncpyz( addr->str, str, sizeof( addr->str ) ); if( !p ) return qfalse; |