Changeset 8139


Ignore:
Timestamp:
Jan 1, 2012, 4:31:25 PM (7 years ago)
Author:
jow
Message:

applications/luci-firewall: fix crash in rule formatting helper when a rule with an /128 ipv6 prefix is encountered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • luci/trunk/applications/luci-firewall/luasrc/tools/firewall.lua

    r8117 r8139  
    8787            a = a or v
    8888            a = a:match(":") and ip.IPv6(a, m) or ip.IPv4(a, m)
    89             if a and (a:is6() or a:prefix() < 32) then
     89            if a and (a:is6() and a:prefix() < 128 or a:prefix() < 32) then
    9090                l[1] = translate("IP range")
    9191                l[#l+1] = "<var title='%s - %s'>%s%s</var>" %{
Note: See TracChangeset for help on using the changeset viewer.