Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

zapret-lib: remove duplicate function

This commit is contained in:
bol-van
2025-12-07 19:59:31 +03:00
parent 4563b6ddcb
commit 0f8cfd7022

View File

@@ -571,17 +571,6 @@ function dissect_nld(domain, level)
end
return nil
end
-- location is url compatible with Location: header
-- hostname is original hostname
function is_dpi_redirect(hostname, location)
local ds = dissect_url(location)
if ds.domain then
local sld1 = dissect_nld(hostname,2)
local sld2 = dissect_nld(ds.domain,2)
return sld2 and sld1~=sld2
end
return false
end
-- support sni=%var
function tls_mod_shim(desync, blob, modlist, payload)