Developing lightweight computation at the DSG edge

Commit 69d625ef authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Fix missing IPv4 field in easy setup when switching from public...

[qmp-system] Fix missing IPv4 field in easy setup when switching from public to natted in basic network settings but not saving changes
parent 4787216b
......@@ -120,7 +120,9 @@ nodemode:value("roaming","natted")
local networkmode
if uciout:get("qmp","roaming","ignore") == "1" then
local ipv4 = uciout:get("qmp","networks","bmx6_ipv4_address")
local ipv4mask = string.find(ipv4,"/")
if ipv4 ~= nil then
local ipv4mask = string.find(ipv4,"/")
end
if ipv4mask ~= nil then
ipv4 = string.sub(ipv4,1,ipv4mask-1)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment