Skip to content

Commit

Permalink
Rename parsed to parse in --udp-filter-quic
Browse files Browse the repository at this point in the history
  • Loading branch information
Waujito committed Jan 3, 2025
1 parent 0b9bc8e commit fff2309
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
6 changes: 3 additions & 3 deletions src/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit fff2309

Please sign in to comment.