Skip to content

Commit

Permalink
Fix source not unwrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Jan 7, 2025
1 parent 8356fa4 commit 2419e1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hysteria/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down
2 changes: 1 addition & 1 deletion hysteria2/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down
2 changes: 1 addition & 1 deletion tuic/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2419e1d

Please sign in to comment.