From 95400e21568c1c1c583235e5e49dc00d911222ed Mon Sep 17 00:00:00 2001 From: MihaZupan Date: Fri, 16 Apr 2021 10:42:18 +0200 Subject: [PATCH] Avoid enforing Socks4 VN value --- .../src/System/Net/Http/SocketsHttpHandler/SocksHelper.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/SocksHelper.cs b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/SocksHelper.cs index 84a3c52ce758f..8e7408410e2f4 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/SocksHelper.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/SocksHelper.cs @@ -298,7 +298,6 @@ private static async ValueTask EstablishSocks4TunnelAsync(Stream stream, bool is // +----+----+----+----+----+----+----+----+ // 1 1 2 4 await ReadToFillAsync(stream, buffer.AsMemory(0, 8), async).ConfigureAwait(false); - VerifyProtocolVersion(ProtocolVersion4, buffer[0]); switch (buffer[1]) {