5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 04:05:39 +00:00

make socks connect to tls listeners, TODO make that configurable

This commit is contained in:
Arceliar 2021-06-25 21:40:19 -05:00
parent d1dfe38683
commit 2db46c1250

View File

@ -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":