diff --git a/hysteria/service.go b/hysteria/service.go index 725ffc3..26a54b4 100644 --- a/hysteria/service.go +++ b/hysteria/service.go @@ -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), } diff --git a/hysteria2/service.go b/hysteria2/service.go index d9c6eb6..bd041b5 100644 --- a/hysteria2/service.go +++ b/hysteria2/service.go @@ -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), } diff --git a/tuic/service.go b/tuic/service.go index b57f9af..a951c8b 100644 --- a/tuic/service.go +++ b/tuic/service.go @@ -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),