Skip to content

Commit 6201397

Browse files
committed
Fix issue where empty creds were being parsed
1 parent 8635d26 commit 6201397

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/client/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ func main() {
7474
SNI: customSNI,
7575
}
7676

77-
if err := settings.SetNTLMProxyCreds(ntlmProxyCreds); err != nil {
78-
log.Fatalf("Embedded ntlm proxy credentials are invalid: %q: %v", ntlmProxyCreds, err)
77+
if ntlmProxyCreds != "" {
78+
if err := settings.SetNTLMProxyCreds(ntlmProxyCreds); err != nil {
79+
log.Fatalf("Embedded ntlm proxy credentials are invalid: %q: %v", ntlmProxyCreds, err)
80+
}
7981
}
8082

8183
if len(os.Args) == 0 || ignoreInput == "true" {

0 commit comments

Comments
 (0)