Skip to content

Commit

Permalink
socks5 UDP association should return fake UDP bind addr if tcp only
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jan 23, 2021
1 parent bd7fcc2 commit 61de565
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/shadowsocks-service/src/local/socks/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ impl Socks {
let udp_bind_addr = self.udp_bind_addr.as_ref().unwrap_or(client_config);
let udp_bind_addr = Arc::new(udp_bind_addr.clone());
Some(udp_bind_addr)
} else if let Some(ref ua) = self.udp_bind_addr {
Some(Arc::new(ua.clone()))
} else {
None
};
Expand Down

0 comments on commit 61de565

Please sign in to comment.