mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-07-06 11:19:51 +00:00
parent
b4dfbaa3f2
commit
810bfd7022
@ -223,7 +223,7 @@ func socks5AddrToUDPAddr(atyp byte, addr []byte, port []byte) (*net.UDPAddr, err
|
||||
return nil, errors.New("invalid ipv4 address")
|
||||
}
|
||||
return &net.UDPAddr{
|
||||
IP: addr,
|
||||
IP: net.IPv4(addr[0], addr[1], addr[2], addr[3]),
|
||||
Port: iPort,
|
||||
}, nil
|
||||
case socks5.ATYPIPv6:
|
||||
|
Loading…
x
Reference in New Issue
Block a user