]> git.sesse.net Git - vlc/commitdiff
Allow SOCKS server to be a hostname rather than an IP always
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 5 Sep 2007 19:51:21 +0000 (19:51 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 5 Sep 2007 19:51:21 +0000 (19:51 +0000)
src/network/tcp.c

index f7842d4f5778a3ed85949028cae5f25a0f111bf5..d06281a74c27657c7973575f19c0fbcf66391e00 100644 (file)
@@ -93,6 +93,7 @@ int __net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
 
         psz_realhost = psz_socks;
         i_realport = ( psz != NULL ) ? atoi( psz ) : 1080;
+        hints.ai_flags &= ~AI_NUMERICHOST;
 
         msg_Dbg( p_this, "net: connecting to %s port %d (SOCKS) for %s port %d",
                  psz_realhost, i_realport, psz_host, i_port );