Update default SNI domain

Relates to #312
This commit is contained in:
Vadim Vetrov
2025-11-22 16:23:58 +03:00
parent 2d579d5479
commit b35b6ed29c
2 changed files with 15 additions and 2 deletions

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;
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];
int cnt = 0;