Permalink
Browse files

Remove broken check for localhost in NET_StringToAdr

  • Loading branch information...
mbasaglia committed Feb 16, 2016
1 parent b155b77 commit deafecc0e15d866409f32d7b5e06fcfe402468d6
Showing with 0 additions and 8 deletions.
  1. +0 −8 daemon/src/engine/qcommon/net_chan.cpp
@@ -678,14 +678,6 @@ int NET_StringToAdr( const char *s, netadr_t *a, netadrtype_t family )
char base[ MAX_STRING_CHARS ], *search;
char *port = nullptr;
if ( !strcmp( s, "localhost" ) )
{
Com_Memset( a, 0, sizeof( *a ) );
a->type = netadrtype_t::NA_LOOPBACK;
// as NA_LOOPBACK doesn't require ports report port was given.
return 1;
}
Q_strncpyz( base, s, sizeof( base ) );
if ( *base == '[' || Q_CountChar( base, ':' ) > 1 )

0 comments on commit deafecc

Please sign in to comment.