1
1
mirror of https://github.com/therootcompany/sclient synced 2025-08-18 16:16:31 +00:00

fix(alpn): use alpn both for test and real connection

This commit is contained in:
AJ ONeal 2025-08-06 15:27:51 -06:00
parent bc4aeb3124
commit 3a2792dcd1
No known key found for this signature in database
GPG Key ID: 9334E610B1ED6FBF

View File

@ -29,8 +29,8 @@ func (t *Tunnel) DialAndListen() error {
conn, err := tls.Dial("tcp", remote,
&tls.Config{
ServerName: t.ServerName,
InsecureSkipVerify: t.InsecureSkipVerify,
NextProtos: t.NextProtos,
InsecureSkipVerify: t.InsecureSkipVerify,
})
if err != nil {
@ -145,6 +145,7 @@ func (t *Tunnel) handleConnection(remote string, conn netReadWriteCloser) {
sclient, err := tls.Dial("tcp", remote,
&tls.Config{
ServerName: t.ServerName,
NextProtos: t.NextProtos,
InsecureSkipVerify: t.InsecureSkipVerify,
})