Mercurial > prosody-modules
diff mod_firewall/mod_firewall.lua @ 6509:f61564e11d3b
various: Adjust for loop variables becoming constants in Lua 5.5
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 07 Apr 2026 14:30:31 +0200 |
| parents | ce716e5e0fee |
| children | 0f61d13ebbde |
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua Tue Apr 07 06:51:05 2026 +0200 +++ b/mod_firewall/mod_firewall.lua Tue Apr 07 14:30:31 2026 +0200 @@ -414,8 +414,8 @@ local state; -- nil -> "rules" -> "actions" -> nil -> ... local line_hold; - for line in file:lines() do - line = line:match("^%s*(.-)%s*$"); + for rawline in file:lines() do + local line = rawline:match("^%s*(.-)%s*$"); if line_hold and line:sub(-1,-1) ~= "\\" then line = line_hold..line; line_hold = nil;
