rename Transport2 into Transport (#897)

This commit is contained in:
Alessandro Ros
2025-09-16 12:28:28 +02:00
committed by GitHub
parent 25aecc7b96
commit 1616c8c634
2 changed files with 7 additions and 7 deletions

View File

@@ -99,12 +99,12 @@ type ServerHandlerOnAnnounce interface {
// ServerHandlerOnSetupCtx is the context of OnSetup.
type ServerHandlerOnSetupCtx struct {
Session *ServerSession
Conn *ServerConn
Request *base.Request
Path string
Query string
Transport2 *SessionTransport
Session *ServerSession
Conn *ServerConn
Request *base.Request
Path string
Query string
Transport *SessionTransport
}
// ServerHandlerOnSetup can be implemented by a ServerHandler.

View File

@@ -1232,7 +1232,7 @@ func (ss *ServerSession) handleRequestInner(sc *ServerConn, req *base.Request) (
Request: req,
Path: path,
Query: query,
Transport2: &SessionTransport{
Transport: &SessionTransport{
Protocol: protocol,
Profile: inTH.Profile,
},