diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/vpn.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/vpn.nix b/modules/vpn.nix index f232e14..f3918be 100644 --- a/modules/vpn.nix +++ b/modules/vpn.nix @@ -27,7 +27,7 @@ let mkPeer = hostConfig: { inherit (hostConfig) publicKey endpoint; - allowedIPs = (lib.optionals (!hostConfig.server) [ "0.0.0.0/0" "::/0" ]); + allowedIPs = (lib.optionals (!hostConfig.server && !cfg.is_server) [ "0.0.0.0/0" "::/0" ]); }; getPeers = host: |