X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fluci-base%2Fluasrc%2Fmodel%2Ffirewall.lua;h=feff0855c4a5c0600b09a3c429695203b768da30;hp=a0f334a6b7ad02742e2d7b6ba101ccc6200d65ea;hb=9ed48ef2a62df5406c589ef9a43da51df8d9645c;hpb=7a3493b1f7d75a3945279115324cf2ff4da26b7b diff --git a/modules/luci-base/luasrc/model/firewall.lua b/modules/luci-base/luasrc/model/firewall.lua index a0f334a6b..feff0855c 100644 --- a/modules/luci-base/luasrc/model/firewall.lua +++ b/modules/luci-base/luasrc/model/firewall.lua @@ -1,4 +1,4 @@ --- Copyright 2009 Jo-Philipp Wich +-- Copyright 2009 Jo-Philipp Wich -- Licensed to the public under the Apache License 2.0. local type, pairs, ipairs, table, luci, math @@ -498,11 +498,13 @@ function forwarding.dest(self) end function forwarding.src_zone(self) - return zone(self:src()) + local z = zone(self:src()) + return z.sid and z end function forwarding.dest_zone(self) - return zone(self:dest()) + local z = zone(self:dest()) + return z.sid and z end