mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-12-06 11:36:45 +03:00
Rename parsed to parse in --udp-filter-quic
This commit is contained in:
@@ -270,7 +270,7 @@ Flags that do not scoped to a specific section, used over all the youtubeUnblock
|
||||
|
||||
- `--udp-faking-strategy={checksum|ttl|none}` Faking strategy for udp. `checksum` will fake UDP checksum, `ttl` won't fake but will make UDP content relatively small, `none` is no faking. Defaults to none.
|
||||
|
||||
- `--udp-filter-quic={disabled|all|parsed}` Enables QUIC filtering for UDP handler. If disabled, quic won't be processed, if all, all quic initial packets will be handled. `parsed` will decrypt and parse QUIC initial message and match it with `--sni-domains`. Defaults to disabled.
|
||||
- `--udp-filter-quic={disabled|all|parse}` Enables QUIC filtering for UDP handler. If disabled, quic won't be processed, if all, all quic initial packets will be handled. `parse` will decrypt and parse QUIC initial message and match it with `--sni-domains`. Defaults to disabled.
|
||||
|
||||
- `--quic-drop` Drop all QUIC packets which goes to youtubeUnblock. Won't affect any other UDP packets. Just an alias for `--udp-filter-quic=all --udp-mode=drop`.
|
||||
|
||||
|
||||
@@ -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|parsed}\n");
|
||||
printf("\t--udp-filter-quic={disabled|all|parse}\n");
|
||||
printf("\t--threads=<threads number>\n");
|
||||
printf("\t--packet-mark=<mark>\n");
|
||||
printf("\t--connbytes-limit=<pkts>\n");
|
||||
@@ -764,7 +764,7 @@ 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) {
|
||||
} else if (strcmp(optarg, "parse") == 0) {
|
||||
sect_config->udp_filter_quic = UDP_FILTER_QUIC_PARSED;
|
||||
} else {
|
||||
goto invalid_opt;
|
||||
@@ -933,7 +933,7 @@ static size_t print_config_section(const struct section_config_t *section, char
|
||||
print_cnf_buf("--udp-filter-quic=disabled");
|
||||
break;
|
||||
case UDP_FILTER_QUIC_PARSED:
|
||||
print_cnf_buf("--udp-filter-quic=parsed");
|
||||
print_cnf_buf("--udp-filter-quic=parse");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user