Skip to content

Commit

Permalink
Fix issue with proxy not setting scheme properly
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Oct 21, 2024
1 parent d35207d commit 63dd997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func GetProxyDetails(proxy string) (string, error) {
proxyURL.Host += ":80"
}
}
return proxyURL.Scheme + proxyURL.Host, nil
return proxyURL.Scheme + "://" + proxyURL.Host, nil
}

func Connect(addr, proxy string, timeout time.Duration) (conn net.Conn, err error) {
Expand Down

0 comments on commit 63dd997

Please sign in to comment.