summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-07 06:43:26 +0100
committertv <tv@krebsco.de>2016-02-07 06:43:26 +0100
commitf1ebd4e4e1bdc76bfca894ace336064b81cc98a1 (patch)
treea7f6a90da0412c599981d143d77614cf5cbb9bdb
parentb746dd09361b0cfb14abd3995afe10536c8fcad8 (diff)
krebs knownHosts: add-port everywhere
-rw-r--r--krebs/3modules/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/krebs/3modules/default.nix b/krebs/3modules/default.nix
index 529506905..e11d40a05 100644
--- a/krebs/3modules/default.nix
+++ b/krebs/3modules/default.nix
@@ -179,7 +179,6 @@ let
(mapAttrsToList
(net-name: net:
let
- aliases = shorts ++ longs;
longs = net.aliases;
shorts =
map (removeSuffix ".${cfg.search-domain}")
@@ -190,7 +189,7 @@ let
then "[${a}]:${toString net.ssh.port}"
else a;
in
- aliases ++ map add-port net.addrs)
+ map add-port (shorts ++ longs ++ net.addrs))
host.nets);
publicKey = host.ssh.pubkey;