krebs knownHosts: add-port everywhere

This commit is contained in:
tv 2016-02-07 06:43:26 +01:00
parent b746dd0936
commit f1ebd4e4e1

View File

@ -179,7 +179,6 @@ let
(mapAttrsToList (mapAttrsToList
(net-name: net: (net-name: net:
let let
aliases = shorts ++ longs;
longs = net.aliases; longs = net.aliases;
shorts = shorts =
map (removeSuffix ".${cfg.search-domain}") map (removeSuffix ".${cfg.search-domain}")
@ -190,7 +189,7 @@ let
then "[${a}]:${toString net.ssh.port}" then "[${a}]:${toString net.ssh.port}"
else a; else a;
in in
aliases ++ map add-port net.addrs) map add-port (shorts ++ longs ++ net.addrs))
host.nets); host.nets);
publicKey = host.ssh.pubkey; publicKey = host.ssh.pubkey;