diff options
Diffstat (limited to 'modules/luci-base/luasrc/model/network.lua')
-rw-r--r-- | modules/luci-base/luasrc/model/network.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index dec25a5d0b..67a2de4ed2 100644 --- a/modules/luci-base/luasrc/model/network.lua +++ b/modules/luci-base/luasrc/model/network.lua @@ -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) |