mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-03 20:47:38 +03:00
parent
a7c159eeb3
commit
b4dfbaa3f2
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ func (c *SOCKS5Client) ListenUDP() (STPacketConn, error) {
|
|||
_ = conn.Close()
|
||||
return nil, err
|
||||
}
|
||||
r := socks5.NewRequest(socks5.CmdUDP, socks5.ATYPIPv4, nil, nil)
|
||||
var zeroIPv4 [4]byte
|
||||
var zeroPort [2]byte
|
||||
r := socks5.NewRequest(socks5.CmdUDP, socks5.ATYPIPv4, zeroIPv4[:], zeroPort[:])
|
||||
reply, err := c.request(conn, r)
|
||||
if err != nil {
|
||||
_ = conn.Close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue