This commit is contained in:
cdle
2023-06-14 20:50:09 +08:00
parent aa4c3fbaaa
commit 05ffe94894
4 changed files with 55 additions and 75 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import (
func GetTransport(proxyUrl string, user, password string) (*http.Transport, error) {
var auth *proxy.Auth
if user != "" && password != "" {
if user != "" || password != "" {
auth = &proxy.Auth{User: user, Password: password}
}
switch {