mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-03 15:18:46 +03:00
Suuport for fake sni elimination strategy - TTL
This commit is contained in:
7
mangle.c
7
mangle.c
@@ -455,6 +455,13 @@ int gen_fake_sni(const struct iphdr *iph, const struct tcphdr *tcph,
|
||||
#else
|
||||
ntcph->th_dport = tcph->th_dport;
|
||||
ntcph->th_sport = tcph->th_sport;
|
||||
|
||||
#if FAKE_SNI_STRATEGY == FKSN_STRAT_TTL
|
||||
ntcph->ack = tcph->ack;
|
||||
ntcph->ack_seq = tcph->ack_seq;
|
||||
niph->ttl = FAKE_SNI_TTL;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
ip4_set_checksum(niph);
|
||||
|
||||
Reference in New Issue
Block a user