MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / proxyDialAddr

Function proxyDialAddr

sdk/proxyutil/proxy.go:216–225  ·  view source on GitHub ↗
(proxyURL *url.URL)

Source from the content-addressed store, hash-verified

214}
215
216func proxyDialAddr(proxyURL *url.URL) string {
217 port := proxyURL.Port()
218 if port == "" {
219 port = "80"
220 if proxyURL.Scheme == "https" {
221 port = "443"
222 }
223 }
224 return net.JoinHostPort(proxyURL.Hostname(), port)
225}
226
227func proxyAuthorization(user *url.Userinfo) string {
228 username := user.Username()

Callers 1

DialMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected