-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ad3a0f
commit ac86466
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,7 @@ type connectDialer struct { | |
// newConnectDialer creates a dialer to issue CONNECT requests and tunnel traffic via HTTP/S proxy. | ||
// proxyUrlStr must provide Scheme and Host, may provide credentials and port. | ||
// Example: https://username:[email protected]:443 | ||
func newConnectDialer(proxyUrlStr string, timeout time.Duration, localAddr *net.TCPAddr, configDialer *net.Dialer) (proxy.ContextDialer, error) { | ||
func newConnectDialer(proxyUrlStr string, timeout time.Duration, localAddr *net.TCPAddr, configDialer net.Dialer) (proxy.ContextDialer, error) { | ||
proxyUrl, err := url.Parse(proxyUrlStr) | ||
if err != nil { | ||
return nil, err | ||
|
@@ -127,7 +127,7 @@ func newConnectDialer(proxyUrlStr string, timeout time.Duration, localAddr *net. | |
|
||
dialer := &connectDialer{ | ||
ProxyUrl: *proxyUrl, | ||
Dialer: *_dialer, | ||
Dialer: _dialer, | ||
Timeout: timeout, | ||
DefaultHeader: make(http.Header), | ||
EnableH2ConnReuse: true, | ||
|