luci-base: luci.model.network: simplify is_auto()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
1b79446fdf
commit
e76caf18bf
1 changed files with 1 additions and 7 deletions
|
@ -1160,13 +1160,7 @@ function protocol.is_dynamic(self)
|
|||
end
|
||||
|
||||
function protocol.is_auto(self)
|
||||
local auto = self:_get("auto")
|
||||
|
||||
if auto == "0" then
|
||||
return false
|
||||
else
|
||||
return true
|
||||
end
|
||||
return (self:_get("auto") ~= "0")
|
||||
end
|
||||
|
||||
function protocol.is_alias(self)
|
||||
|
|
Loading…
Reference in a new issue