From 8453fd2a9850f68ec9cc5835c3e064a0779a03b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 5 Sep 2007 19:51:21 +0000 Subject: [PATCH] Allow SOCKS server to be a hostname rather than an IP always --- src/network/tcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/tcp.c b/src/network/tcp.c index f7842d4f57..d06281a74c 100644 --- a/src/network/tcp.c +++ b/src/network/tcp.c @@ -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 ); -- 2.39.2