mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-27 12:40:36 +03:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da650bd09f | ||
|
|
07334c598d | ||
|
|
b35b6ed29c | ||
|
|
2d579d5479 |
2
Makefile
2
Makefile
@@ -1,7 +1,7 @@
|
|||||||
USPACE_TARGETS := default all install uninstall dev run_dev
|
USPACE_TARGETS := default all install uninstall dev run_dev
|
||||||
KMAKE_TARGETS := kmake kload kunload kreload xmod xtclean
|
KMAKE_TARGETS := kmake kload kunload kreload xmod xtclean
|
||||||
|
|
||||||
PKG_VERSION := 1.1.0
|
PKG_VERSION := 1.1.1
|
||||||
PKG_RELEASE := 1
|
PKG_RELEASE := 1
|
||||||
|
|
||||||
PKG_FULLVERSION := $(PKG_VERSION)-$(PKG_RELEASE)
|
PKG_FULLVERSION := $(PKG_VERSION)-$(PKG_RELEASE)
|
||||||
|
|||||||
@@ -1057,6 +1057,8 @@ static size_t print_config_section(const struct section_config_t *section, char
|
|||||||
}
|
}
|
||||||
|
|
||||||
print_cnf_buf("--seg2delay=%d", section->seg2_delay);
|
print_cnf_buf("--seg2delay=%d", section->seg2_delay);
|
||||||
|
} else {
|
||||||
|
print_cnf_buf("--fake-sni=0");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print_cnf_buf("--tls=disabled");
|
print_cnf_buf("--tls=disabled");
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ enum {
|
|||||||
.fragmentation_strategy = FRAGMENTATION_STRATEGY, \
|
.fragmentation_strategy = FRAGMENTATION_STRATEGY, \
|
||||||
.faking_strategy = FAKING_STRATEGY, \
|
.faking_strategy = FAKING_STRATEGY, \
|
||||||
.faking_ttl = FAKE_TTL, \
|
.faking_ttl = FAKE_TTL, \
|
||||||
.fake_sni = 1, \
|
.fake_sni = 0, \
|
||||||
.fake_sni_seq_len = 1, \
|
.fake_sni_seq_len = 1, \
|
||||||
.fake_sni_type = FAKE_PAYLOAD_DEFAULT, \
|
.fake_sni_type = FAKE_PAYLOAD_DEFAULT, \
|
||||||
.fake_custom_pkt = NULL, \
|
.fake_custom_pkt = NULL, \
|
||||||
|
|||||||
@@ -345,6 +345,15 @@ int process_tcp_packet(const struct section_config_t *section, const uint8_t *ra
|
|||||||
ipd_offset = target_sni_offset;
|
ipd_offset = target_sni_offset;
|
||||||
mid_offset = ipd_offset + vrd.target_sni_len / 2;
|
mid_offset = ipd_offset + vrd.target_sni_len / 2;
|
||||||
|
|
||||||
|
// hardcode googlevideo.com split
|
||||||
|
// googlevideo domains are very long, so
|
||||||
|
// it is possible for the entire domain to not be
|
||||||
|
// splitted (split goes for subdomain)
|
||||||
|
if (vrd.target_sni_len > 30) {
|
||||||
|
mid_offset = ipd_offset +
|
||||||
|
vrd.target_sni_len - 12;
|
||||||
|
}
|
||||||
|
|
||||||
size_t poses[2];
|
size_t poses[2];
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user