summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/vpn.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/vpn.nix b/modules/vpn.nix
index 61bb947..63442ff 100644
--- a/modules/vpn.nix
+++ b/modules/vpn.nix
@@ -32,11 +32,11 @@ let
getPeers = host:
if
- hostConfig.router
+ host == "dragon"
then
builtins.map mkPeer (builtins.attrValues (builtins.removeAttrs hosts [host]))
else
- builtins.map mkPeer hosts.dragon;
+ builtins.map mkPeer [hosts.dragon];
in
{