Prefer ipv4 for deployment again

This commit is contained in:
Sandro - 2022-09-09 23:34:10 +02:00
parent 9c091ec901
commit 3632d4291e
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 3 additions and 3 deletions

View File

@ -146,10 +146,10 @@
let
hostConf = hostRegistry.hosts."${name}";
in
if hostConf ? ip6
then hostConf.ip6
else if hostConf ? ip4
if hostConf ? ip4
then hostConf.ip4
else if hostConf ? ip6
then hostConf.ip6
else throw "Host ${name} has no ip4 or ip6 address";
in {
overlay = import ./overlay {