Skip to content

Commit 00bd01f

Browse files
committed
feat: continue if alpn no match
1 parent 443697f commit 00bd01f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tls/tcp.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ func (mgr *TlsMgr) Handle(c *tcp.Conn) tcp.SerRet {
4545
continue
4646
}
4747
}
48+
49+
c.Upgrade(tls.Server(c.TopConn(), &tls.Config{
50+
Certificates: []tls.Certificate{*cert},
51+
}), "")
52+
53+
return tcp.Continue
4854
}
4955
}
5056
return tcp.Close

0 commit comments

Comments
 (0)