mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-01-04 13:24:35 +00:00
Fix issue with synfake and two youtubeUnblock instances one after another
This commit is contained in:
parent
3d9481d72d
commit
8b23ab762d
4
mangle.c
4
mangle.c
@ -89,7 +89,7 @@ int process_tcp_packet(const uint8_t *raw_payload, uint32_t raw_payload_len) {
|
|||||||
goto accept;
|
goto accept;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tcph->syn && config.synfake) {
|
if (tcph->syn) {
|
||||||
lgtrace_addp("TCP syn alter");
|
lgtrace_addp("TCP syn alter");
|
||||||
uint8_t payload[MAX_PACKET_SIZE];
|
uint8_t payload[MAX_PACKET_SIZE];
|
||||||
memcpy(payload, ipxh, iph_len);
|
memcpy(payload, ipxh, iph_len);
|
||||||
@ -127,6 +127,8 @@ int process_tcp_packet(const uint8_t *raw_payload, uint32_t raw_payload_len) {
|
|||||||
goto drop;
|
goto drop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tcph->syn) goto accept;
|
||||||
|
|
||||||
struct tls_verdict vrd = analyze_tls_data(data, dlen);
|
struct tls_verdict vrd = analyze_tls_data(data, dlen);
|
||||||
|
|
||||||
if (vrd.target_sni) {
|
if (vrd.target_sni) {
|
||||||
|
Loading…
Reference in New Issue
Block a user