mirror of
https://github.com/bol-van/zapret.git
synced 2025-12-10 21:46:49 +03:00
nfqws: fix fakedsplit-pattern if not specified
This commit is contained in:
10
nfq/nfqws.c
10
nfq/nfqws.c
@@ -3320,6 +3320,16 @@ int main(int argc, char **argv)
|
|||||||
if (dp->desync_ttl6 == 0xFF) dp->desync_ttl6 = dp->desync_ttl;
|
if (dp->desync_ttl6 == 0xFF) dp->desync_ttl6 = dp->desync_ttl;
|
||||||
if (dp->dup_ttl6 == 0xFF) dp->dup_ttl6 = dp->dup_ttl;
|
if (dp->dup_ttl6 == 0xFF) dp->dup_ttl6 = dp->dup_ttl;
|
||||||
if (dp->orig_mod_ttl6 == 0xFF) dp->orig_mod_ttl6 = dp->orig_mod_ttl;
|
if (dp->orig_mod_ttl6 == 0xFF) dp->orig_mod_ttl6 = dp->orig_mod_ttl;
|
||||||
|
if (!dp->fsplit_pattern)
|
||||||
|
{
|
||||||
|
if (dp->fsplit_pattern=calloc(1,1))
|
||||||
|
dp->fsplit_pattern_size=1;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DLOG_ERR("out of memory\n");
|
||||||
|
exit_clean(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!AUTOTTL_ENABLED(dp->desync_autottl6)) dp->desync_autottl6 = dp->desync_autottl;
|
if (!AUTOTTL_ENABLED(dp->desync_autottl6)) dp->desync_autottl6 = dp->desync_autottl;
|
||||||
if (!AUTOTTL_ENABLED(dp->orig_autottl6)) dp->orig_autottl6 = dp->orig_autottl;
|
if (!AUTOTTL_ENABLED(dp->orig_autottl6)) dp->orig_autottl6 = dp->orig_autottl;
|
||||||
if (!AUTOTTL_ENABLED(dp->dup_autottl6)) dp->dup_autottl6 = dp->dup_autottl;
|
if (!AUTOTTL_ENABLED(dp->dup_autottl6)) dp->dup_autottl6 = dp->dup_autottl;
|
||||||
|
|||||||
Reference in New Issue
Block a user