From cbb89711bbbc610ae316bc34ba5254c907befcfb Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 3 Oct 2022 23:02:57 +0400 Subject: [PATCH] Added proxy auth --- proxy/connection.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/connection.go b/proxy/connection.go index 958f703..0561ac4 100644 --- a/proxy/connection.go +++ b/proxy/connection.go @@ -209,6 +209,7 @@ func getProxyConn(proxyUrl *url.URL, address string) (net.Conn, error) { Method: "CONNECT", URL: &url.URL{Opaque: address}, Host: address, + Header: http.Header{}, } if proxyUrl.User != nil { connectReq.Header.Set("Proxy-Authorization", "Basic"+base64.StdEncoding.EncodeToString([]byte(proxyUrl.User.String())))