diff --git a/binaries/aarch64/nfqws b/binaries/aarch64/nfqws index 4775f42..130b2d0 100755 Binary files a/binaries/aarch64/nfqws and b/binaries/aarch64/nfqws differ diff --git a/binaries/arm/nfqws b/binaries/arm/nfqws index f1a7254..9a0ee68 100755 Binary files a/binaries/arm/nfqws and b/binaries/arm/nfqws differ diff --git a/binaries/freebsd-x64/dvtws b/binaries/freebsd-x64/dvtws index 1a0009f..a6422e9 100755 Binary files a/binaries/freebsd-x64/dvtws and b/binaries/freebsd-x64/dvtws differ diff --git a/binaries/mips32r1-lsb/nfqws b/binaries/mips32r1-lsb/nfqws index c860312..479e78e 100755 Binary files a/binaries/mips32r1-lsb/nfqws and b/binaries/mips32r1-lsb/nfqws differ diff --git a/binaries/mips32r1-msb/nfqws b/binaries/mips32r1-msb/nfqws index d52dc21..b6e8fdb 100755 Binary files a/binaries/mips32r1-msb/nfqws and b/binaries/mips32r1-msb/nfqws differ diff --git a/binaries/mips64r2-msb/nfqws b/binaries/mips64r2-msb/nfqws index e932e4e..b8aa7df 100755 Binary files a/binaries/mips64r2-msb/nfqws and b/binaries/mips64r2-msb/nfqws differ diff --git a/binaries/ppc/nfqws b/binaries/ppc/nfqws index f476aeb..15f614a 100755 Binary files a/binaries/ppc/nfqws and b/binaries/ppc/nfqws differ diff --git a/binaries/x86/nfqws b/binaries/x86/nfqws index 772075e..f37dc59 100755 Binary files a/binaries/x86/nfqws and b/binaries/x86/nfqws differ diff --git a/binaries/x86_64/nfqws b/binaries/x86_64/nfqws index 6f97d6a..1a1756b 100755 Binary files a/binaries/x86_64/nfqws and b/binaries/x86_64/nfqws differ diff --git a/nfq/nfqws.c b/nfq/nfqws.c index 4037d67..078dcca 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -688,6 +688,9 @@ int main(int argc, char **argv) memcpy(params.hostspell, "host", 4); // default hostspell *pidfile = 0; +#ifdef __linux__ + params.qnum = -1; +#endif params.desync_fwmark = DPI_DESYNC_FWMARK_DEFAULT; params.desync_skip_nosni = true; params.desync_split_pos = 2; @@ -1230,6 +1233,21 @@ int main(int argc, char **argv) #endif } } + +#ifdef __linux__ + if (params.qnum<0) + { + fprintf(stderr, "Need queue number (--qnum)\n"); + exit_clean(1); + } +#elif defined(BSD) + if (!params.port) + { + fprintf(stderr, "Need divert port (--port)\n"); + exit_clean(1); + } +#endif + // not specified - use desync_ttl value instead if (params.desync_ttl6 == 0xFF) params.desync_ttl6=params.desync_ttl; if (!AUTOTTL_ENABLED(params.desync_autottl6)) params.desync_autottl6 = params.desync_autottl; @@ -1238,14 +1256,6 @@ int main(int argc, char **argv) if (AUTOTTL_ENABLED(params.desync_autottl6)) DLOG("autottl ipv6 %u:%u-%u\n",params.desync_autottl6.delta,params.desync_autottl6.min,params.desync_autottl6.max) -#ifdef BSD - if (!params.port) - { - fprintf(stderr, "Need port number\n"); - exit_clean(1); - } -#endif - if (!LoadIncludeHostLists()) { fprintf(stderr, "Include hostlist load failed\n");