mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 10:40:27 +00:00
make socks connect to tls listeners, TODO make that configurable
This commit is contained in:
parent
d1dfe38683
commit
2db46c1250
@ -93,6 +93,7 @@ func (l *links) call(u *url.URL, sintf string) error {
|
||||
tcpOpts.socksProxyAuth.User = u.User.Username()
|
||||
tcpOpts.socksProxyAuth.Password, _ = u.User.Password()
|
||||
}
|
||||
tcpOpts.upgrade = l.tcp.tls.forDialer // TODO make this configurable
|
||||
pathtokens := strings.Split(strings.Trim(u.Path, "/"), "/")
|
||||
l.tcp.call(pathtokens[0], tcpOpts, sintf)
|
||||
case "tls":
|
||||
|
Loading…
Reference in New Issue
Block a user