fix: export build403Html, add unit test for undefined IP fallback

This commit is contained in:
Kirill
2026-05-23 11:09:21 +05:00
parent 5fdf49658f
commit fd720572e7
2 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ function normalizeIp(ip) {
return ip
}
function build403Html(ip) {
export function build403Html(ip) {
const safeIp = ip || 'не определён'
return `<!DOCTYPE html>
<html lang="ru">