mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-01 14:18:49 +03:00
Allow to use fbegin without fend
This commit is contained in:
@@ -264,7 +264,7 @@ Available flags:
|
||||
|
||||
- `--packet-mark=<mark>` Use this option if youtubeUnblock conflicts with other systems rely on packet mark. Note that you may want to change accept rule for iptables to follow the mark.
|
||||
|
||||
- `--fbegin` and `--fend` flags: youtubeUnblock supports multiple sets of strategies for specific filters. You may want to initiate a new set after the default one, like: `--sni-domains=googlevideo.com --faking-strategy=md5sum --fbegin --sni-domains=youtube.com --faking-strategy=tcp_check --fend --fbegin --sni-domains=l.google.com --faking-strategy=pastseq --fend`. Note, that the priority of these sets goes backwards: last is first, default (one that does not start with --fbegin) is last. If you start the new section, the default settings are implemented just like youtubeUnblock without any parameters. Note that the config above is just an example and won't work for you.
|
||||
- `--fbegin` and `--fend` flags: youtubeUnblock supports multiple sets of strategies for specific filters. You may want to initiate a new set after the default one, like: `--sni-domains=googlevideo.com --faking-strategy=md5sum --fbegin --sni-domains=youtube.com --faking-strategy=tcp_check --fbegin --sni-domains=l.google.com --faking-strategy=pastseq`. Note, that the priority of these sets goes backwards: last is first, default (one that does not start with --fbegin) is last. If you start the new section, the default settings are implemented just like youtubeUnblock without any parameters. Note that the config above is just an example and won't work for you.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
|
||||
5
args.c
5
args.c
@@ -472,9 +472,7 @@ int yparse_args(int argc, char *argv[]) {
|
||||
rep_config.connbytes_limit = num;
|
||||
break;
|
||||
case OPT_START_SECTION:
|
||||
if (section_iter != SECT_ITER_DEFAULT && section_iter != SECT_ITER_OUTSIDE)
|
||||
goto invalid_opt;
|
||||
|
||||
{
|
||||
struct section_config_t *nsect;
|
||||
ret = init_section_config(&nsect, rep_config.last_section);
|
||||
if (ret < 0) {
|
||||
@@ -487,6 +485,7 @@ int yparse_args(int argc, char *argv[]) {
|
||||
section_iter = SECT_ITER_INSIDE;
|
||||
|
||||
break;
|
||||
}
|
||||
case OPT_END_SECTION:
|
||||
if (section_iter != SECT_ITER_INSIDE)
|
||||
goto invalid_opt;
|
||||
|
||||
Reference in New Issue
Block a user