add debugging version

This commit is contained in:
2025-03-17 08:48:04 +11:00
parent 89583a609c
commit 491fa8fb98
6 changed files with 13 additions and 106 deletions

View File

@@ -7,13 +7,13 @@ import (
"encoding/base64"
"errors"
"fmt"
"io/ioutil"
"io"
"net"
"net/http"
"net/url"
"strings"
ntlmssp "github.com/launchdarkly/go-ntlmssp"
ntlmssp "git.coadcorp.com/nathan/go-ntlmssp"
)
// DialContext is the DialContext function that should be wrapped with a
@@ -86,7 +86,7 @@ func dialAndNegotiate(addr, proxyUsername, proxyPassword, proxyDomain string, ba
debugf("ntlm> Could not read response from proxy: %s", err)
return conn, err
}
_, err = ioutil.ReadAll(resp.Body)
_, err = io.ReadAll(resp.Body)
if err != nil {
debugf("ntlm> Could not read response body from proxy: %s", err)
return conn, err