4 Commits

Author SHA1 Message Date
Vadim Vetrov
da650bd09f Bump version 2025-12-28 12:56:11 +03:00
Vadim Vetrov
07334c598d Disable fake_sni parameter by default.
It seems like youtubeUnblock works even without --fake-sni
2025-12-27 17:46:25 +03:00
Vadim Vetrov
b35b6ed29c Update default SNI domain
Relates to #312
2025-11-22 16:24:42 +03:00
Vadim Vetrov
2d579d5479 Bump version
See branch openwrt
2025-08-15 08:39:28 +03:00
4 changed files with 13 additions and 2 deletions

View File

@@ -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)

View File

@@ -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");

View File

@@ -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, \

View File

@@ -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;