|
|
@ -156,13 +156,13 @@ func LoadConf(confFile string) (err error) { |
|
|
|
if ok { |
|
|
|
if ok { |
|
|
|
proxyClient.HostHeaderRewrite = tmpStr |
|
|
|
proxyClient.HostHeaderRewrite = tmpStr |
|
|
|
} |
|
|
|
} |
|
|
|
// http_username
|
|
|
|
// http_user
|
|
|
|
tmpStr, ok = section["http_username"] |
|
|
|
tmpStr, ok = section["http_user"] |
|
|
|
if ok { |
|
|
|
if ok { |
|
|
|
proxyClient.HttpUserName = tmpStr |
|
|
|
proxyClient.HttpUserName = tmpStr |
|
|
|
} |
|
|
|
} |
|
|
|
// http_password
|
|
|
|
// http_pwd
|
|
|
|
tmpStr, ok = section["http_password"] |
|
|
|
tmpStr, ok = section["http_pwd"] |
|
|
|
if ok { |
|
|
|
if ok { |
|
|
|
proxyClient.HttpPassWord = tmpStr |
|
|
|
proxyClient.HttpPassWord = tmpStr |
|
|
|
} |
|
|
|
} |
|
|
|