mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 06:15:31 +00:00
Fix last SNI detect
This commit is contained in:
parent
bb66ab13a8
commit
50933ee0d6
8
mangle.c
8
mangle.c
@ -408,8 +408,12 @@ struct verdict analyze_tls_data(
|
||||
|
||||
|
||||
unsigned int j = 0;
|
||||
for (unsigned int i = 0; i < config.domains_strlen; i++) {
|
||||
if (config.domains_str[i] == ',' || config.domains_str[i] == '\n') {
|
||||
for (unsigned int i = 0; i <= config.domains_strlen; i++) {
|
||||
if ( i == config.domains_strlen ||
|
||||
config.domains_str[i] == '\0' ||
|
||||
config.domains_str[i] == ',' ||
|
||||
config.domains_str[i] == '\n' ) {
|
||||
|
||||
unsigned int domain_len = (i - j);
|
||||
const char *sni_startp = sni_name + sni_len - domain_len;
|
||||
const char *domain_startp = config.domains_str + j;
|
||||
|
Loading…
Reference in New Issue
Block a user