2
2
use std:: io:: { BufRead , BufReader , Cursor , Error as IoError } ;
3
3
#[ cfg( any( target_os = "freebsd" , target_os = "macos" , target_os = "netbsd" ) ) ]
4
4
use std:: net:: { Ipv4Addr , Ipv6Addr } ;
5
+ use std:: net:: { SocketAddr , ToSocketAddrs } ;
5
6
#[ cfg( target_os = "linux" ) ]
6
7
use std:: { collections:: HashSet , fs:: OpenOptions } ;
7
8
#[ cfg( any( target_os = "freebsd" , target_os = "linux" , target_os = "netbsd" ) ) ]
8
9
use std:: { io:: Write , process:: Stdio } ;
9
- use std:: {
10
- net:: { IpAddr , SocketAddr , ToSocketAddrs } ,
11
- process:: Command ,
12
- } ;
10
+ #[ cfg( not( target_os = "windows" ) ) ]
11
+ use std:: { net:: IpAddr , process:: Command } ;
13
12
14
13
#[ cfg( target_os = "freebsd" ) ]
15
14
use crate :: check_command_output_status;
15
+ #[ cfg( not( target_os = "windows" ) ) ]
16
+ use crate :: Peer ;
17
+ use crate :: WireguardInterfaceError ;
16
18
#[ cfg( any( target_os = "freebsd" , target_os = "macos" , target_os = "netbsd" ) ) ]
17
19
use crate :: {
18
20
bsd:: { add_gateway, add_linked_route, get_gateway} ,
@@ -21,7 +23,6 @@ use crate::{
21
23
} ;
22
24
#[ cfg( target_os = "linux" ) ]
23
25
use crate :: { check_command_output_status, netlink, IpVersion } ;
24
- use crate :: { Peer , WireguardInterfaceError } ;
25
26
26
27
#[ cfg( any( target_os = "freebsd" , target_os = "linux" , target_os = "netbsd" ) ) ]
27
28
pub ( crate ) fn configure_dns (
0 commit comments