modules/vpn: fix deprecation warnings

This commit is contained in:
Colin 2024-06-22 03:35:41 +00:00
parent 5e7fe850ec
commit 845dba3ca5

View File

@ -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;