fix: hardening

This commit is contained in:
FUFSoB committed 2026-10-05 22:44:09 +05:00
1 parent 017a947a18
commit a435942b4f
168 files changed
+9166 -1644

No files matched your search

+2 -1
View File
@@ -18,7 +18,8 @@ local function name(hrec)
end
local function log(hrec, text)
io.stderr:write("zapret2: ", name(hrec), ": ", text, "\n")
-- The host comes off the wire (a SNI): no control character, so no forged journal line.
io.stderr:write("zapret2: ", (tostring(name(hrec)):gsub("%c", "?")), ": ", (tostring(text):gsub("%c", "?")), "\n")
end
local function of(hrec)