mod_firewall/mod_firewall.lua
changeset 2084 a435db77a5e5
parent 2082 11539785cb92
child 2103 a8c701631d0b
equal deleted inserted replaced
2083:edec9de0220a 2084:a435db77a5e5
   162 		elseif line:sub(-1,-1) == "\\" then
   162 		elseif line:sub(-1,-1) == "\\" then
   163 			line_hold = (line_hold or "")..line:sub(1,-2);
   163 			line_hold = (line_hold or "")..line:sub(1,-2);
   164 		end
   164 		end
   165 		line_no = line_no + 1;
   165 		line_no = line_no + 1;
   166 
   166 
   167 		if line_hold or line:find("^[#;]") then
   167 		if line_hold or line:find("^[#;]") then -- luacheck: ignore 542
   168 			-- No action; comment or partial line
   168 			-- No action; comment or partial line
   169 		elseif line == "" then
   169 		elseif line == "" then
   170 			if state == "rules" then
   170 			if state == "rules" then
   171 				return nil, ("Expected an action on line %d for preceding criteria")
   171 				return nil, ("Expected an action on line %d for preceding criteria")
   172 					:format(line_no);
   172 					:format(line_no);