mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-02-01 15:10:34 +03:00
Add --udp-filter-quic=parse
This will enable QUIC decryption and parsing.
This commit is contained in:
@@ -368,7 +368,7 @@ void print_usage(const char *argv0) {
|
||||
printf("\t--udp-fake-len=<size of upd fake>\n");
|
||||
printf("\t--udp-faking-strategy={checksum|ttl|none}\n");
|
||||
printf("\t--udp-dport-filter=<5,6,200-500>\n");
|
||||
printf("\t--udp-filter-quic={disabled|all}\n");
|
||||
printf("\t--udp-filter-quic={disabled|all|parsed}\n");
|
||||
printf("\t--threads=<threads number>\n");
|
||||
printf("\t--packet-mark=<mark>\n");
|
||||
printf("\t--connbytes-limit=<pkts>\n");
|
||||
@@ -764,6 +764,8 @@ int yparse_args(int argc, char *argv[]) {
|
||||
sect_config->udp_filter_quic = UDP_FILTER_QUIC_DISABLED;
|
||||
} else if (strcmp(optarg, "all") == 0) {
|
||||
sect_config->udp_filter_quic = UDP_FILTER_QUIC_ALL;
|
||||
} else if (strcmp(optarg, "parsed") == 0) {
|
||||
sect_config->udp_filter_quic = UDP_FILTER_QUIC_PARSED;
|
||||
} else {
|
||||
goto invalid_opt;
|
||||
}
|
||||
@@ -930,6 +932,9 @@ static size_t print_config_section(const struct section_config_t *section, char
|
||||
case UDP_FILTER_QUIC_DISABLED:
|
||||
print_cnf_buf("--udp-filter-quic=disabled");
|
||||
break;
|
||||
case UDP_FILTER_QUIC_PARSED:
|
||||
print_cnf_buf("--udp-filter-quic=parsed");
|
||||
break;
|
||||
}
|
||||
|
||||
if (section->udp_dport_range_len != 0) {
|
||||
|
||||
Reference in New Issue
Block a user