From 20a0fa671da143b406262a8211cdaf109ac46cd3 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 5 Feb 2026 12:36:27 +0300 Subject: [PATCH] AI fixes --- lua/zapret-auto.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/zapret-auto.lua b/lua/zapret-auto.lua index 1fdba33..6a44453 100644 --- a/lua/zapret-auto.lua +++ b/lua/zapret-auto.lua @@ -107,10 +107,10 @@ end -- hostname is original hostname function is_dpi_redirect(hostname, location) local ds = dissect_url(location) - if ds.domain then + if ds and ds.domain then local sld1 = dissect_nld(hostname,2) local sld2 = dissect_nld(ds.domain,2) - return sld2 and sld1~=sld2 + return sld2 and sld1~=sld2 and true or false end return false end