Fix source not unwrapped

This commit is contained in:
世界 2025-01-07 12:25:24 +08:00
parent 8356fa4ad8
commit 2419e1d7f7
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 3 additions and 3 deletions

View file

@ -159,7 +159,7 @@ func (s *Service[U]) loopConnections(listener qtls.Listener) {
Service: s,
ctx: s.ctx,
quicConn: connection,
source: M.SocksaddrFromNet(connection.RemoteAddr()),
source: M.SocksaddrFromNet(connection.RemoteAddr()).Unwrap(),
connDone: make(chan struct{}),
udpConnMap: make(map[uint32]*udpPacketConn),
}

View file

@ -156,7 +156,7 @@ func (s *Service[U]) handleConnection(connection quic.Connection) {
Service: s,
ctx: s.ctx,
quicConn: connection,
source: M.SocksaddrFromNet(connection.RemoteAddr()),
source: M.SocksaddrFromNet(connection.RemoteAddr()).Unwrap(),
connDone: make(chan struct{}),
udpConnMap: make(map[uint32]*udpPacketConn),
}

View file

@ -163,7 +163,7 @@ func (s *Service[U]) handleConnection(connection quic.Connection) {
Service: s,
ctx: s.ctx,
quicConn: connection,
source: M.SocksaddrFromNet(connection.RemoteAddr()),
source: M.SocksaddrFromNet(connection.RemoteAddr()).Unwrap(),
connDone: make(chan struct{}),
authDone: make(chan struct{}),
udpConnMap: make(map[uint16]*udpPacketConn),