Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bdwyertech committed Nov 24, 2022
1 parent 5bb7eb5 commit 99ede5f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pkg/gontlm-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,14 @@ func Run() {
if tunnelPxy, ok := ProxyOverrides[pxy.Host]; ok {
var tunnelctx proxyplease.DialContext = func(ctx context.Context, network, addr string) (net.Conn, error) {
conn, err := proxyplease.NewDialContext(proxyplease.Proxy{
URL: tunnelPxy,
Username: ProxyUser,
Password: ProxyPass,
Domain: ProxyDomain,
TargetURL: pxy,
URL: tunnelPxy,
Username: ProxyUser,
Password: ProxyPass,
Domain: ProxyDomain,
})(ctx, network, pxy.Host)

if err != nil {
log.Println(err)
return nil, err
return conn, err
}

req := &http.Request{
Expand Down

0 comments on commit 99ede5f

Please sign in to comment.