Commit 9de08850 authored by Faizal Aziz's avatar Faizal Aziz

hotfix again

parent c0f82c8a
...@@ -105,9 +105,9 @@ func (c *client) GetWithProxyAuth(ctx *context.UlfsaarContext, path, ip, port, u ...@@ -105,9 +105,9 @@ func (c *client) GetWithProxyAuth(ctx *context.UlfsaarContext, path, ip, port, u
urls := c.options.Address + path urls := c.options.Address + path
startTime := time.Now() startTime := time.Now()
var stringProxUrl string var stringProxUrl string
proxUrl, err := url.Parse(fmt.Sprintf("http://%s:%s", ip, port)) proxUrl, err := url.Parse(fmt.Sprintf("http://%s:%s@%s:%s", username, password, ip, port))
if err != nil { if err != nil {
stringProxUrl = fmt.Sprintf("%s:%s", ip, port) stringProxUrl = fmt.Sprintf("http://%s:%s@%s:%s", username, password, ip, port)
} else { } else {
stringProxUrl = proxUrl.String() stringProxUrl = proxUrl.String()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment