Skip to content

Commit 07d0462

Browse files
committed
fix: import Ipv4Addr unconditionally for macOS compatibility
1 parent 6800e52 commit 07d0462

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/proxy.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ use std::os::fd::AsRawFd;
2121
#[cfg(target_os = "linux")]
2222
use socket2::{Domain, Protocol, Socket, Type};
2323

24-
use std::net::SocketAddr;
24+
use std::net::{Ipv4Addr, SocketAddr};
25+
2526
#[cfg(target_os = "linux")]
26-
use std::net::{Ipv4Addr, Ipv6Addr};
27+
use std::net::Ipv6Addr;
2728
use std::sync::{Arc, OnceLock};
2829
use std::time::Duration;
2930
use tokio::net::{TcpListener, TcpStream};

0 commit comments

Comments
 (0)