(proxyURL *url.URL)
| 214 | } |
| 215 | |
| 216 | func 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 | |
| 227 | func proxyAuthorization(user *url.Userinfo) string { |
| 228 | username := user.Username() |