From 0d99c68b1bfe4507d377bce723599032b9e88cf7 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 14 Dec 2025 21:07:43 +0300 Subject: [PATCH] zapret-auto: do not nld if track.hostname_is_ip --- lua/zapret-auto.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/zapret-auto.lua b/lua/zapret-auto.lua index 216a06e..34bfca7 100644 --- a/lua/zapret-auto.lua +++ b/lua/zapret-auto.lua @@ -9,7 +9,7 @@ function standard_hostkey(desync) local hostkey = desync.track and desync.track.hostname if hostkey then - if desync.arg.nld and tonumber(desync.arg.nld)>0 then + if desync.arg.nld and tonumber(desync.arg.nld)>0 and not (desync.track and desync.track.hostname_is_ip) then -- dissect_nld returns nil if domain is invalid or does not have this NLD -- fall back to original hostkey if it fails local hktemp = dissect_nld(hostkey, tonumber(desync.arg.nld))