Fix IndexTLSServerName

This commit is contained in:
世界
2025-07-22 19:01:37 +08:00
parent 687343f6ca
commit 18a6719893
3 changed files with 45 additions and 23 deletions

View File

@@ -45,7 +45,7 @@ func (c *Conn) Write(b []byte) (n int, err error) {
defer func() {
c.firstPacketWritten = true
}()
serverName := indexTLSServerName(b)
serverName := IndexTLSServerName(b)
if serverName != nil {
if c.splitPacket {
if c.tcpConn != nil {