Browse Source

nfqws: fix behavior when no proflle filter matched

pull/362/head
bol-van 7 months ago
parent
commit
0f6d1f4020
  1. BIN
      binaries/aarch64/nfqws
  2. BIN
      binaries/arm/nfqws
  3. BIN
      binaries/freebsd-x64/dvtws
  4. BIN
      binaries/mips32r1-lsb/nfqws
  5. BIN
      binaries/mips32r1-msb/nfqws
  6. BIN
      binaries/mips64r2-msb/nfqws
  7. BIN
      binaries/ppc/nfqws
  8. BIN
      binaries/win64/winws.exe
  9. BIN
      binaries/win64/zapret-winws/winws.exe
  10. BIN
      binaries/x86/nfqws
  11. BIN
      binaries/x86_64/nfqws
  12. 3
      docs/readme.eng.md
  13. 2
      docs/readme.txt
  14. 12
      nfq/nfqws.c

BIN
binaries/aarch64/nfqws

Binary file not shown.

BIN
binaries/arm/nfqws

Binary file not shown.

BIN
binaries/freebsd-x64/dvtws

Binary file not shown.

BIN
binaries/mips32r1-lsb/nfqws

Binary file not shown.

BIN
binaries/mips32r1-msb/nfqws

Binary file not shown.

BIN
binaries/mips64r2-msb/nfqws

Binary file not shown.

BIN
binaries/ppc/nfqws

Binary file not shown.

BIN
binaries/win64/winws.exe

Binary file not shown.

BIN
binaries/win64/zapret-winws/winws.exe

Binary file not shown.

BIN
binaries/x86/nfqws

Binary file not shown.

BIN
binaries/x86_64/nfqws

Binary file not shown.

3
docs/readme.eng.md

@ -589,6 +589,9 @@ hostname is revealed it's switched to another profile.
If you use 0-phase desync methods think carefully what can happen during strategy switch. If you use 0-phase desync methods think carefully what can happen during strategy switch.
Use `--debug` logging to understand better what `nfqws` does. Use `--debug` logging to understand better what `nfqws` does.
Profiles are numbered from 1 to N. There's last empty profile in the chain numbered 0.
It's used when no filter matched.
IMPORTANT : multiple strategies exist only for the case when it's not possible to combine all to one strategy. IMPORTANT : multiple strategies exist only for the case when it's not possible to combine all to one strategy.
Copy-pasting blockcheck results of different websites to multiple strategies lead to the mess. Copy-pasting blockcheck results of different websites to multiple strategies lead to the mess.
This way you may never unblock all resources and only confuse yourself. This way you may never unblock all resources and only confuse yourself.

2
docs/readme.txt

@ -678,6 +678,8 @@ nfqws способен по-разному реагировать на разл
хоста профиль меняется на лету. Поэтому если у вас есть параметры дурения нулевой фазы, тщательно хоста профиль меняется на лету. Поэтому если у вас есть параметры дурения нулевой фазы, тщательно
продумывайте что может произойти при переключении стратегии. Смотрите debug log, чтобы лучше продумывайте что может произойти при переключении стратегии. Смотрите debug log, чтобы лучше
понять что делает nfqws. понять что делает nfqws.
Нумерация профилей идет с 1 до N. Последним в цепочке создается пустой профиль с номером 0.
Он используется, когда никакие условия фильтров не совпали.
ВАЖНО : множественные стратегии создавались только для случаев, когда невозможно обьединить ВАЖНО : множественные стратегии создавались только для случаев, когда невозможно обьединить
имеющиеся стратегии для разных ресурсов. Копирование стратегий из blockcheck для разных сайтов имеющиеся стратегии для разных ресурсов. Копирование стратегий из blockcheck для разных сайтов

12
nfq/nfqws.c

@ -1706,7 +1706,7 @@ int main(int argc, char **argv)
#endif #endif
} }
} }
#ifdef __linux__ #ifdef __linux__
if (params.qnum<0) if (params.qnum<0)
{ {
@ -1763,7 +1763,15 @@ int main(int argc, char **argv)
} }
#endif #endif
DLOG_CONDUP("we have %d desync profile(s)\n",desync_profile_count); DLOG("adding low-priority default empty desync profile\n");
// add default empty profile
if (!(dpl = dp_list_add(&params.desync_profiles)))
{
DLOG_ERR("desync_profile_add: out of memory\n");
exit_clean(1);
}
DLOG_CONDUP("we have %d user defined desync profile(s) and default low priority profile 0\n",desync_profile_count);
v=0; v=0;
LIST_FOREACH(dpl, &params.desync_profiles, next) LIST_FOREACH(dpl, &params.desync_profiles, next)

Loading…
Cancel
Save