refine code

This commit is contained in:
ssrlive 2023-08-21 16:08:48 +08:00
parent 0f67dd6981
commit 3c09c2699d
2 changed files with 14 additions and 12 deletions

View file

@ -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()