Skip to content

Commit

Permalink
chore(local): local-redir build warning fixed on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Oct 17, 2023
1 parent cf8d84b commit 64d9cf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/shadowsocks-service/src/local/redir/sys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ where
}

#[cfg(windows)]
#[allow(dead_code)]
pub fn set_ipv6_only<S>(socket: &S, ipv6_only: bool) -> io::Result<()>
where
S: std::os::windows::io::AsRawSocket,
Expand Down
1 change: 1 addition & 0 deletions crates/shadowsocks-service/src/local/redir/udprelay/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl UdpInboundWrite for UdpRedirInboundWriter {
// then we should always use IPv6 sockets for sending IPv4 packets.
static SUPPORT_IPV6_TRANSPARENT: AtomicBool = AtomicBool::new(true);

#[allow(unused_mut)]
let mut addr = match *remote_addr {
Address::SocketAddress(sa) => {
if SUPPORT_IPV6_TRANSPARENT.load(Ordering::Relaxed) {
Expand Down

0 comments on commit 64d9cf3

Please sign in to comment.