diff --git a/lua/zapret-antidpi.lua b/lua/zapret-antidpi.lua index 78dacc4..3020a8d 100644 --- a/lua/zapret-antidpi.lua +++ b/lua/zapret-antidpi.lua @@ -95,7 +95,8 @@ function send(ctx, desync) apply_fooling(desync, dis) apply_ip_id(desync, dis, nil, "none") if desync.arg.delay then - local tname = "send_"..desync_timer_name(desync) + local tname = desync_timer_name(desync) +print("tname "..tname) timer_set(tname, "send_timer_delayed", tonumber(desync.arg.delay), true, {dis = dis, opts = desync_opts(desync)}) else -- it uses rawsend, reconstruct and ipfrag options diff --git a/lua/zapret-lib.lua b/lua/zapret-lib.lua index 9277f8f..29c0389 100644 --- a/lua/zapret-lib.lua +++ b/lua/zapret-lib.lua @@ -550,7 +550,7 @@ function blob(desync, name, def) -- use global var if no field in dissect table blob = _G[name] if not blob then - error("blob '"..name.."' unavailable") + error("blob '"..name.."' unavailable") end end blob = tostring(blob) @@ -808,7 +808,7 @@ function dis_timer_name(dis) return table.concat({ntop(dis_ipsrc(dis)),"->",ntop(dis_ipdst(dis)),"_",dis_l4_name(dis),"_",dis_l4_ports(dis)}) end function desync_timer_name(desync) - local name = dis_timer_name(desync.dis) + local name = desync.func_instance.."_"..dis_timer_name(desync.dis) if desync.track then name = name.."_n"..desync.track.pos.direct.pcounter else