Supernodes support 44net by default (#1753)

This commit is contained in:
Tim Wilkinson 2024-12-06 16:34:51 -08:00 committed by GitHub
parent dbe05fc6fb
commit cbfbad9d88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1124,7 +1124,7 @@ if nixio.fs.access("/etc/config.mesh/olsrd", "r") then
if is_supernode then
of:write("config Hna4\n\toption netaddr 10.0.0.0\n\toption netmask 255.0.0.0\n\n")
local is_44net = nc:get("aredn", "@supernode[0]", "44net")
if is_44net == "1" then
if is_44net ~= "0" then
of:write("config Hna4\n\toption netaddr 44.0.0.0\n\toption netmask 255.128.0.0\n\n")
of:write("config Hna4\n\toption netaddr 44.128.0.0\n\toption netmask 255.192.0.0\n\n")
end