function is working, octets were in the wrong order though
This commit is contained in:
+1
-1
@@ -241,7 +241,7 @@ function utils.get_active_default_gateway()
|
||||
table.insert(routes, {
|
||||
iface = iface,
|
||||
metric = tonumber(metric_str) or 999,
|
||||
gateway = string.format("%d.%d.%d.%d", o1, o2, o3, o4) -- Corrected from your version
|
||||
gateway = string.format("%d.%d.%d.%d", o4, o3, o2, o1) -- Corrected from your version
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user