Changeset 9797


Ignore:
Timestamp:
Mar 27, 2013, 2:28:26 PM (6 years ago)
Author:
jow
Message:

libs/sys: fix incomplete options table when parsing iptables rules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/sys/luasrc/sys/iptparser.lua

    r6826 r9797  
    333333                    rule_details["options"]     = { }
    334334
    335                     for i = 11, #rule_parts - 1 do
    336                         rule_details["options"][i-10] = rule_parts[i]
     335                    for i = 11, #rule_parts  do
     336                        if #rule_parts[i] > 0 then
     337                            rule_details["options"][i-10] = rule_parts[i]
     338                        end
    337339                    end
    338340
Note: See TracChangeset for help on using the changeset viewer.