nebula: use relay

This commit is contained in:
陈浩南 2023-09-13 02:12:52 +08:00
parent b8dcfa0fd6
commit 01213d9eff

View File

@ -24,10 +24,11 @@ inputs:
firewall.outbound = [ { host = "any"; port = "any"; proto = "any"; } ];
}
// (
if nebula.lighthouse == null then { isLighthouse = true; }
if nebula.lighthouse == null then { isLighthouse = true; isRelay = true; }
else
{
lighthouses = [ "192.168.82.1" ];
relays = [ "192.168.82.1" ];
staticHostMap."192.168.82.1" = [ "${nebula.lighthouse}:4242" ];
listen.port = 0;
}