krebs knownHosts: add-port everywhere
This commit is contained in:
parent
b746dd0936
commit
f1ebd4e4e1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user