From ce2acc07833c1eab6736f82375829ce7e4bc6740 Mon Sep 17 00:00:00 2001 From: Aaron Chen Date: Fri, 3 Jan 2025 19:42:38 +0800 Subject: [PATCH] fix: freebsd build error (#1832) --- crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs b/crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs index 61ad111bebb3..85983a86b09e 100644 --- a/crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs +++ b/crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs @@ -237,7 +237,7 @@ pub async fn create_outbound_udp_socket(af: AddrFamily, config: &ConnectOpts) -> } /// Create a `UdpSocket` binded to `bind_addr` -pub async fn bind_outbound_udp_socket(bind_addr: &SocketAddr, _config: &ConnectOpts) -> io::Result { +pub async fn bind_outbound_udp_socket(bind_addr: &SocketAddr, config: &ConnectOpts) -> io::Result { let af = AddrFamily::from(bind_addr); let socket = if af != AddrFamily::Ipv6 {