]> Cypherpunks repositories - gostls13.git/commit
net/http: support socks5h proxy schema
author胡玮文 <huweiwen.hww@alibaba-inc.com>
Fri, 8 Mar 2024 05:42:49 +0000 (13:42 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 11 Mar 2024 18:07:37 +0000 (18:07 +0000)
commitc8e4f8c7756d67e27d2cfe4383cb90cf9f97d5a3
treea0174b0fdb5e34178eb03bd6d60b12aa0bf28e38
parentec4baaca390ac884c1f55fa1171d2b1eac571b0a
net/http: support socks5h proxy schema

Extend the net/http Transport to recognize the 'socks5h' schema as an
alias for 'socks5'. Traditionally, the 'socks5h' schema indicates that
the hostname should be resolved by the proxy server, which is behavior
already implemented in Go for 'socks5'.

Fixes #24135

Change-Id: I0a6a92bbd282a3200dc4dc7b47a9b0628f931783
Reviewed-on: https://go-review.googlesource.com/c/go/+/569977
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/net/http/transport.go
src/net/http/transport_test.go