From ae5cc08ac8769118f672720ac76300fe4d2b6765 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Tue, 2 Jun 2009 21:09:38 +0000 Subject: luci-olsr: Fix Net list netmask parsing --- applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-olsr/luasrc/model/cbi') diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua index 48dca0aabe..03f18a8180 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) -- cgit v1.2.3