mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 14:26:11 +00:00
Fix fake sni strategy ttl
This commit is contained in:
parent
50933ee0d6
commit
8e3fa48510
8
mangle.c
8
mangle.c
@ -473,11 +473,11 @@ int gen_fake_sni(const struct iphdr *iph, const struct tcphdr *tcph,
|
|||||||
ntcph->th_dport = tcph->th_dport;
|
ntcph->th_dport = tcph->th_dport;
|
||||||
ntcph->th_sport = tcph->th_sport;
|
ntcph->th_sport = tcph->th_sport;
|
||||||
|
|
||||||
#if FAKE_SNI_STRATEGY == FKSN_STRAT_TTL
|
if (config.fake_sni_strategy == FKSN_STRAT_TTL) {
|
||||||
ntcph->ack = tcph->ack;
|
ntcph->seq = tcph->seq;
|
||||||
ntcph->ack_seq = tcph->ack_seq;
|
ntcph->ack_seq = tcph->ack_seq;
|
||||||
niph->ttl = FAKE_SNI_TTL;
|
niph->ttl = config.fake_sni_ttl;
|
||||||
#endif
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -517,7 +517,7 @@ static int process_packet(const struct packet_data packet, struct queue_data qda
|
|||||||
|
|
||||||
if (dlen > 1480) {
|
if (dlen > 1480) {
|
||||||
if (config.verbose)
|
if (config.verbose)
|
||||||
fprintf(stderr, "WARNING! Google video packet is too big and may cause issues!\n");
|
fprintf(stderr, "WARNING! Client Hello packet is too big and may cause issues!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t frag1[MNL_SOCKET_BUFFER_SIZE];
|
uint8_t frag1[MNL_SOCKET_BUFFER_SIZE];
|
||||||
|
Loading…
Reference in New Issue
Block a user