From 2db46c1250c8f1f8add58a75dab35adcbd966c7a Mon Sep 17 00:00:00 2001 From: Arceliar Date: Fri, 25 Jun 2021 21:40:19 -0500 Subject: [PATCH] make socks connect to tls listeners, TODO make that configurable --- src/core/link.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/link.go b/src/core/link.go index 295a8ad6..165b18b2 100644 --- a/src/core/link.go +++ b/src/core/link.go @@ -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":