mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-30 14:45:08 +00:00
nfqws: allow partial TLS for relative markers
This commit is contained in:
parent
bc463930aa
commit
9aff90b466
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include "protocol.h"
|
#include "protocol.h"
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
|
#include "params.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
@ -507,7 +509,7 @@ size_t TLSPos(uint8_t posmarker, int16_t pos, const uint8_t *data, size_t sz)
|
|||||||
case PM_HOST_MIDSLD:
|
case PM_HOST_MIDSLD:
|
||||||
case PM_HOST_ENDSLD:
|
case PM_HOST_ENDSLD:
|
||||||
case PM_SNI_EXT:
|
case PM_SNI_EXT:
|
||||||
if (TLSFindExt(data,sz,0,&ext,&elen,false))
|
if (TLSFindExt(data,sz,0,&ext,&elen,TLS_PARTIALS_ENABLE))
|
||||||
{
|
{
|
||||||
if (posmarker==PM_SNI_EXT)
|
if (posmarker==PM_SNI_EXT)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user