From 0588240d8d6ce3fd6269a1e9e23c8623d5c01894 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 5 Dec 2025 11:06:03 +0300 Subject: [PATCH] nfqws2: LUA_COMPAT_VER tracking --- docs/changes.txt | 3 ++- docs/changes_compat.txt | 7 +++++++ nfq2/lua.c | 18 +++++++++++++++++- nfq2/nfqws.c | 39 +++++++++++++++++++++------------------ nfq2/nfqws.h | 3 +++ nfq2/params.h | 1 + 6 files changed, 51 insertions(+), 20 deletions(-) create mode 100755 docs/changes_compat.txt diff --git a/docs/changes.txt b/docs/changes.txt index 6007b16..25ad43a 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -43,7 +43,8 @@ v0.3 v0.4 -* nfqws2: profile names +* nfqws2: profile names and cookies * nfqws2: profile templates * nfqws2: remove stun_binding_req, replace to stun. no more message type details * blockcheck2: fix broken dns cache +* nfqws2: LUA_COMPAT_VER tracking diff --git a/docs/changes_compat.txt b/docs/changes_compat.txt new file mode 100755 index 0000000..1692b54 --- /dev/null +++ b/docs/changes_compat.txt @@ -0,0 +1,7 @@ +Here listed all api breaking changes. +When something changes capable of breaking things NFQWS2_COMPAT_VER increases. + +v2 +* removed "stun_binding_req" specialized payload. replaced with common "stun" - any stun packets, not only binding request. +every LUA relying on desync.l7payload should be revised. +nfqws2 --payload option and init.d custom scripts must be updated. diff --git a/nfq2/lua.c b/nfq2/lua.c index cea9313..1b36589 100644 --- a/nfq2/lua.c +++ b/nfq2/lua.c @@ -2792,6 +2792,21 @@ static void lua_init_const(void) { LUA_STACK_GUARD_ENTER(params.L) + const struct + { + const char *name, *v; + } cstr[] = { + {"NFQWS2_VER",params.verstr} + }; + + DLOG("LUA STR:"); + for (int i=0;i