File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,15 @@ impl WireguardInterfaceApi for WGApi<Kernel> {
53
53
54
54
debug ! ( "WireGuard configuration file {file_name} created in {file_path}. Preparing configuration..." ) ;
55
55
56
+ let address = config
57
+ . addresses
58
+ . iter ( )
59
+ . map ( |addr| addr. to_string ( ) )
60
+ . collect :: < Vec < String > > ( )
61
+ . join ( "," ) ;
56
62
let mut wireguard_configuration = format ! (
57
- "[Interface]\n PrivateKey = {}\n Address = {}\n " ,
58
- config. prvkey, config . address
63
+ "[Interface]\n PrivateKey = {}\n Address = {address }\n " ,
64
+ config. prvkey
59
65
) ;
60
66
61
67
if !dns. is_empty ( ) {
@@ -315,7 +321,7 @@ impl WireguardInterfaceApi for WGApi<Kernel> {
315
321
fn configure_dns (
316
322
& self ,
317
323
dns : & [ IpAddr ] ,
318
- search_domains : & [ & str ] ,
324
+ _search_domains : & [ & str ] ,
319
325
) -> Result < ( ) , WireguardInterfaceError > {
320
326
debug ! (
321
327
"Configuring DNS for interface {}, using address: {dns:?}" ,
You can’t perform that action at this time.
0 commit comments