diff --git a/crates/shadowsocks-service/src/local/socks/server/mod.rs b/crates/shadowsocks-service/src/local/socks/server/mod.rs index d3308fd26371..c56e857964e8 100644 --- a/crates/shadowsocks-service/src/local/socks/server/mod.rs +++ b/crates/shadowsocks-service/src/local/socks/server/mod.rs @@ -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 };