Skip to content

Commit

Permalink
fix: freebsd build error (#1832)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronChen0 authored Jan 3, 2025
1 parent 7e059ca commit ce2acc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<UdpSocket> {
pub async fn bind_outbound_udp_socket(bind_addr: &SocketAddr, config: &ConnectOpts) -> io::Result<UdpSocket> {
let af = AddrFamily::from(bind_addr);

let socket = if af != AddrFamily::Ipv6 {
Expand Down

0 comments on commit ce2acc0

Please sign in to comment.