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:
parent
bc4aeb3124
commit
3a2792dcd1
@ -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,
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user