mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2024-12-22 06:15:27 +00:00
Handle only (default_ttl - 30) range in Auto TTL
This commit is contained in:
parent
fc15088c33
commit
d61a9f8022
@ -221,7 +221,7 @@ int tcp_handle_outgoing(uint32_t srcip[4], uint32_t dstip[4],
|
||||
int tcp_get_auto_ttl(const uint8_t ttl, const uint8_t decrease_for) {
|
||||
uint8_t ttl_of_fake_packet = 0;
|
||||
|
||||
if (ttl > 64 && ttl < 128) {
|
||||
if (ttl > 98 && ttl < 128) {
|
||||
/* Safekeeping */
|
||||
if (128 - ttl > decrease_for + 1) {
|
||||
ttl_of_fake_packet = 128 - ttl - decrease_for;
|
||||
|
Loading…
Reference in New Issue
Block a user