mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-27 01:08:29 +03:00
Fix MASQUE endpoint parsing
This commit is contained in:
@@ -77,7 +77,16 @@ func ConnectTunnel(ctx context.Context, dialer N.Dialer, tlsConfig aTLS.Config,
|
||||
if !ok || quicEndpoint == nil {
|
||||
return nil, nil, nil, errors.New("missing HTTP/3 UDP endpoint")
|
||||
}
|
||||
udpConn, err := dialer.ListenPacket(ctx, M.SocksaddrFromNetIP(quicEndpoint.AddrPort()))
|
||||
endpointAddrPort := quicEndpoint.AddrPort()
|
||||
udpConn, err := dialer.ListenPacket(
|
||||
ctx,
|
||||
M.SocksaddrFromNetIP(
|
||||
netip.AddrPortFrom(
|
||||
endpointAddrPort.Addr().Unmap(),
|
||||
endpointAddrPort.Port(),
|
||||
),
|
||||
),
|
||||
)
|
||||
if err != nil {
|
||||
return nil, nil, nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user