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