Skip to content

Commit

Permalink
ipn/socks5: ip-addr + hostname to connect w upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Oct 31, 2023
1 parent 624208b commit d49ff14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intra/ipn/socks5.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func NewSocks5Proxy(id string, ctl protect.Controller, po *settings.ProxyOptions

portnumber, _ := strconv.Atoi(po.Port)
mh := new(multihost.MH)
mh.With([]string{po.Host}) // resolves if ip is name
mh.With([]string{po.Host, po.IP}) // resolves if ip is name

var clients []proxy.Dialer
// x.net.proxy doesn't yet support udp
Expand Down

0 comments on commit d49ff14

Please sign in to comment.