mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-23 01:20:52 +00:00
refine code
This commit is contained in:
parent
0f67dd6981
commit
3c09c2699d
2 changed files with 14 additions and 12 deletions
|
@ -203,8 +203,7 @@ impl SocksProxyImpl {
|
|||
}
|
||||
|
||||
fn send_request_socks5(&mut self) -> Result<(), Error> {
|
||||
use socks5_impl::protocol::Command::UdpAssociate;
|
||||
let addr = if self.command == UdpAssociate {
|
||||
let addr = if self.command == protocol::Command::UdpAssociate {
|
||||
Address::unspecified()
|
||||
} else {
|
||||
self.info.dst.clone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue