]> Cypherpunks.ru repositories - gostls13.git/commitdiff
net/http: mention socks5 support in proxy
authorSean Liao <seankhliao@gmail.com>
Tue, 8 Jun 2021 18:13:23 +0000 (20:13 +0200)
committerDamien Neil <dneil@google.com>
Fri, 2 Jul 2021 21:06:08 +0000 (21:06 +0000)
Change-Id: I55b6d5c77221569eeafea625379affd476a65772
Reviewed-on: https://go-review.googlesource.com/c/go/+/326011
Reviewed-by: Damien Neil <dneil@google.com>
Trust: Dmitri Shuralyov <dmitshur@golang.org>

src/net/http/transport.go

index 47cb992a50215b0f241b76274f9c771d05651c2b..309194e8e52c86f8ef17109464f8b28a1f244bfa 100644 (file)
@@ -427,6 +427,7 @@ func (t *Transport) onceSetNextProtoDefaults() {
 //
 // The environment values may be either a complete URL or a
 // "host[:port]", in which case the "http" scheme is assumed.
+// The schemes "http", "https", and "socks5" are supported.
 // An error is returned if the value is a different form.
 //
 // A nil URL and nil error are returned if no proxy is defined in the