diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-05-31 08:22:06 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-05-31 08:22:06 -0400 |
commit | 0a93d2be4e16e8a20775b67d5c2d666cbba8004d (patch) | |
tree | 5c5908d7c153110ae4d5049915b2115ec0510b08 /modules | |
parent | 00e66ee7f08bf50316b6326c31b701bdfbdd1682 (diff) |
VPN config
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 cab83be..8e936d0 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 && !cfg.is_server) [ "0.0.0.0/0" "::/0" ]); + allowedIPs = hostConfig.ips ++ (lib.optionals (hostConfig.server && !cfg.is_server) [ "0.0.0.0/0" "::/0" ]); }; getPeers = host: |