fix(outbounds): incorrect use of SOCKS5 UDP dst.addr & dst.port (#1583)
This commit is contained in:
parent
2412f23646
commit
3b64f66995
1 changed files with 1 additions and 2 deletions
|
|
@ -180,8 +180,7 @@ func (s *socks5Outbound) UDP(reqAddr *AddrEx) (UDPConn, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
atyp, dstAddr, dstPort := addrExToSOCKS5Addr(reqAddr)
|
||||
req := socks5.NewRequest(socks5.CmdUDP, atyp, dstAddr, dstPort)
|
||||
req := socks5.NewRequest(socks5.CmdUDP, socks5.ATYPIPv4, []byte{0, 0, 0, 0}, []byte{0, 0})
|
||||
resp, err := s.request(conn, req)
|
||||
if err != nil {
|
||||
_ = conn.Close()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue