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