mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 21:42:59 +03:00
nfqws: host options didnt work without debug
This commit is contained in:
parent
1978e8f4ab
commit
91fb1f5278
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -83,6 +83,7 @@ packet_process_result dpi_desync_packet(uint8_t *data_pkt, size_t len_pkt, struc
|
||||
char host[256];
|
||||
bool bHaveHost=false;
|
||||
bool bIsHttp;
|
||||
uint8_t *phost;
|
||||
|
||||
if (bIsHttp = IsHttp(data_payload,len_payload))
|
||||
{
|
||||
@ -127,8 +128,8 @@ packet_process_result dpi_desync_packet(uint8_t *data_pkt, size_t len_pkt, struc
|
||||
DLOG("not applying tampering to this request\n")
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
uint8_t *phost;
|
||||
if (bIsHttp && (params.hostcase || params.hostnospace) && (phost = (uint8_t*)memmem(data_payload, len_payload, "\r\nHost: ", 8)))
|
||||
{
|
||||
if (params.hostcase)
|
||||
@ -156,7 +157,6 @@ packet_process_result dpi_desync_packet(uint8_t *data_pkt, size_t len_pkt, struc
|
||||
res=modify;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (params.desync_mode==DESYNC_NONE) return res;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user