[malovpn] change peers.nix address to string without CIDR notation

this way we can easily use ip by hostname in other modules
This commit is contained in:
2025-03-16 00:54:31 +01:00
parent de600fe7c7
commit 766b738a6a
2 changed files with 7 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ in
interfaces = {
malovpn = {
mtu = 1340; #seems to be necessary to proxypass nginx traffic through vpn
address = myPeer.address;
address = [ "${myPeer.address}/24" ];
autostart = cfg.autostart;
listenPort = mkIf (myPeer.role == "server") myPeer.listenPort;