mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
User might want to bind the socket to a different address
than what is advertised in the Socks 5 UDP Associate responses.
This adds a new command line option to control only that but to still
default to udp bind addr and local address.
Example:
sslocal --local-addr 0.0.0.0:1080 --udp-associate-addr 10.51.1.1:1080 -U
Here the server would without this change respond to UDP Associate request with
address 0.0.0.0:1080. With the new switch, it responds 10.51.1.1:1080.