just pasted the logger command in instead of wrapping it in popen
This commit is contained in:
+1
-1
@@ -275,7 +275,7 @@ function utils.get_gateway_for_interface(interface_name)
|
|||||||
-- We shall not suffer an unsanctioned interface name to proceed.
|
-- We shall not suffer an unsanctioned interface name to proceed.
|
||||||
if not interface_name or (interface_name ~= "wwan0" and interface_name ~= "vif-sta0") then
|
if not interface_name or (interface_name ~= "wwan0" and interface_name ~= "vif-sta0") then
|
||||||
-- Log the transgression and reject the impure input.
|
-- Log the transgression and reject the impure input.
|
||||||
logger -t GHI-UTILS "Rejected unsanctified interface name: " .. tostring(interface_name)
|
os.execute('logger -t GHI-UTILS "Rejected unsanctified interface name: ' .. tostring(interface_name) .. '"')
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user