mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
pin to v1.0.0 of github action parser
This commit is contained in:
parent
9c3a288946
commit
eb25b2a615
116 changed files with 9431 additions and 3576 deletions
9
vendor/golang.org/x/net/proxy/proxy.go
generated
vendored
9
vendor/golang.org/x/net/proxy/proxy.go
generated
vendored
|
@ -79,8 +79,13 @@ func FromURL(u *url.URL, forward Dialer) (Dialer, error) {
|
|||
}
|
||||
|
||||
switch u.Scheme {
|
||||
case "socks5":
|
||||
return SOCKS5("tcp", u.Host, auth, forward)
|
||||
case "socks5", "socks5h":
|
||||
addr := u.Hostname()
|
||||
port := u.Port()
|
||||
if port == "" {
|
||||
port = "1080"
|
||||
}
|
||||
return SOCKS5("tcp", net.JoinHostPort(addr, port), auth, forward)
|
||||
}
|
||||
|
||||
// If the scheme doesn't match any of the built-in schemes, see if it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue