Skip to content

Commit 75b7172

Browse files
authored
fix: rm more windows (#11050)
1 parent 69c8ddb commit 75b7172

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

crates/node/core/src/args/network.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,13 @@ pub struct NetworkArgs {
153153
/// Name of network interface used to communicate with peers.
154154
///
155155
/// If flag is set, but no value is passed, the default interface for docker `eth0` is tried.
156-
#[cfg(not(target_os = "windows"))]
157156
#[arg(long = "net-if.experimental", conflicts_with = "addr", value_name = "IF_NAME")]
158157
pub net_if: Option<String>,
159158
}
160159

161160
impl NetworkArgs {
162161
/// Returns the resolved IP address.
163162
pub fn resolved_addr(&self) -> IpAddr {
164-
#[cfg(not(target_os = "windows"))]
165163
if let Some(ref if_name) = self.net_if {
166164
let if_name = if if_name.is_empty() { DEFAULT_NET_IF_NAME } else { if_name };
167165
return match reth_net_nat::net_if::resolve_net_if_ip(if_name) {

0 commit comments

Comments
 (0)