mirror of
https://github.com/bol-van/zapret.git
synced 2025-12-30 19:38:08 +03:00
nfqws: wireguard protocol recognition
This commit is contained in:
@@ -727,6 +727,13 @@ packet_process_result dpi_desync_udp_packet(uint32_t fwmark, const char *ifout,
|
||||
}
|
||||
bKnownProtocol = true;
|
||||
}
|
||||
else if (IsWireguardHandshakeInitiation(data_payload,len_payload))
|
||||
{
|
||||
DLOG("packet contains wireguard handshake initiation\n")
|
||||
fake = params.fake_wg;
|
||||
fake_size = params.fake_wg_size;
|
||||
bKnownProtocol = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!params.desync_any_proto) return res;
|
||||
|
||||
Reference in New Issue
Block a user