mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
make socks connect to tls listeners, TODO make that configurable
This commit is contained in:
parent
d1dfe38683
commit
2db46c1250
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ func (l *links) call(u *url.URL, sintf string) error {
|
||||||
tcpOpts.socksProxyAuth.User = u.User.Username()
|
tcpOpts.socksProxyAuth.User = u.User.Username()
|
||||||
tcpOpts.socksProxyAuth.Password, _ = u.User.Password()
|
tcpOpts.socksProxyAuth.Password, _ = u.User.Password()
|
||||||
}
|
}
|
||||||
|
tcpOpts.upgrade = l.tcp.tls.forDialer // TODO make this configurable
|
||||||
pathtokens := strings.Split(strings.Trim(u.Path, "/"), "/")
|
pathtokens := strings.Split(strings.Trim(u.Path, "/"), "/")
|
||||||
l.tcp.call(pathtokens[0], tcpOpts, sintf)
|
l.tcp.call(pathtokens[0], tcpOpts, sintf)
|
||||||
case "tls":
|
case "tls":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue