modules/vpn: fix deprecation warnings
This commit is contained in:
parent
5e7fe850ec
commit
845dba3ca5
|
@ -127,14 +127,12 @@ let
|
|||
FirewallMark = fwmark;
|
||||
};
|
||||
wireguardPeers = [{
|
||||
wireguardPeerConfig = {
|
||||
AllowedIPs = [
|
||||
"0.0.0.0/0"
|
||||
"::/0"
|
||||
];
|
||||
Endpoint = endpoint;
|
||||
PublicKey = publicKey;
|
||||
};
|
||||
AllowedIPs = [
|
||||
"0.0.0.0/0"
|
||||
"::/0"
|
||||
];
|
||||
Endpoint = endpoint;
|
||||
PublicKey = publicKey;
|
||||
}];
|
||||
};
|
||||
|
||||
|
@ -149,10 +147,10 @@ let
|
|||
# Domains = ~.: system DNS queries are sent to this link's DNS server
|
||||
# networkConfig.Domains = "~.";
|
||||
routes = [{
|
||||
routeConfig.Table = id;
|
||||
routeConfig.Scope = "link";
|
||||
routeConfig.Destination = "0.0.0.0/0";
|
||||
routeConfig.Source = addrV4;
|
||||
Table = id;
|
||||
Scope = "link";
|
||||
Destination = "0.0.0.0/0";
|
||||
Source = addrV4;
|
||||
}];
|
||||
# RequiredForOnline => should `systemd-networkd-wait-online` fail if this network can't come up?
|
||||
linkConfig.RequiredForOnline = false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user