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. // ServerHandlerOnSetupCtx is the context of OnSetup.
type ServerHandlerOnSetupCtx struct { type ServerHandlerOnSetupCtx struct {
Session *ServerSession Session *ServerSession
Conn *ServerConn Conn *ServerConn
Request *base.Request Request *base.Request
Path string Path string
Query string Query string
Transport2 *SessionTransport Transport *SessionTransport
} }
// ServerHandlerOnSetup can be implemented by a ServerHandler. // ServerHandlerOnSetup can be implemented by a ServerHandler.

View File

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