diff options
author | Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> | 2009-06-02 21:09:38 +0000 |
---|---|---|
committer | Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> | 2009-06-02 21:09:38 +0000 |
commit | ae5cc08ac8769118f672720ac76300fe4d2b6765 (patch) | |
tree | 7a62e9534e9298f894bdd562fdef0c55f80d38d9 /applications/luci-olsr/luasrc | |
parent | fbc438cf3a665b7ba55d39837a7228dd16deae10 (diff) |
luci-olsr: Fix Net list netmask parsing
Diffstat (limited to 'applications/luci-olsr/luasrc')
-rw-r--r-- | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua index 48dca0aab..03f18a818 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua @@ -56,7 +56,7 @@ if arg[1] then local function IpMask2Cidr(val) if val then for i = 1, #val do - local ip, mask = val[i]:gmatch("([^%s+])%s+([^%s+])")() + local ip, mask = val[i]:gmatch("([^%s]+)%s+([^%s]+)")() local cidr if ip and mask and ip:match(":") then cidr = luci.ip.IPv6(ip, mask) |