File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
crates/node/core/src/args Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -153,15 +153,13 @@ pub struct NetworkArgs {
153
153
/// Name of network interface used to communicate with peers.
154
154
///
155
155
/// If flag is set, but no value is passed, the default interface for docker `eth0` is tried.
156
- #[ cfg( not( target_os = "windows" ) ) ]
157
156
#[ arg( long = "net-if.experimental" , conflicts_with = "addr" , value_name = "IF_NAME" ) ]
158
157
pub net_if : Option < String > ,
159
158
}
160
159
161
160
impl NetworkArgs {
162
161
/// Returns the resolved IP address.
163
162
pub fn resolved_addr ( & self ) -> IpAddr {
164
- #[ cfg( not( target_os = "windows" ) ) ]
165
163
if let Some ( ref if_name) = self . net_if {
166
164
let if_name = if if_name. is_empty ( ) { DEFAULT_NET_IF_NAME } else { if_name } ;
167
165
return match reth_net_nat:: net_if:: resolve_net_if_ip ( if_name) {
You can’t perform that action at this time.
0 commit comments