mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-31 22:50:34 +03:00
Add section-specific post args
This commit is contained in:
@@ -215,10 +215,12 @@ return view.extend({
|
|||||||
let o;
|
let o;
|
||||||
|
|
||||||
o = s.option(form.Flag, "silent", _("Silent"), _("Disables verbose mode"));
|
o = s.option(form.Flag, "silent", _("Silent"), _("Disables verbose mode"));
|
||||||
o.depends("trace", 0);
|
o.defalt = "0"
|
||||||
|
o.depends("trace", "0");
|
||||||
|
|
||||||
o = s.option(form.Flag, "trace", _("Trace"), _("Maximum verbosity for debug purposes"));
|
o = s.option(form.Flag, "trace", _("Trace"), _("Maximum verbosity for debug purposes"));
|
||||||
o.depends("silent", 0);
|
o.defalt = "0"
|
||||||
|
o.depends("silent", "0");
|
||||||
|
|
||||||
o = s.option(form.Flag, "no_gso", _("No gso"), _("Disables support for Google Chrome fat packets which uses GSO. This feature is well tested now, so this flag probably won't fix anything."));
|
o = s.option(form.Flag, "no_gso", _("No gso"), _("Disables support for Google Chrome fat packets which uses GSO. This feature is well tested now, so this flag probably won't fix anything."));
|
||||||
|
|
||||||
@@ -277,6 +279,10 @@ return view.extend({
|
|||||||
o.modalonly = true;
|
o.modalonly = true;
|
||||||
|
|
||||||
|
|
||||||
|
o = subsects_section.taboption('general', form.Value, "section_post_args", _("Section post args"), _("Section-specific post arguments"));
|
||||||
|
o.modalonly = true;
|
||||||
|
|
||||||
|
|
||||||
this.renderSectionTLSConfigs({option(optionclass, ...classargs) {
|
this.renderSectionTLSConfigs({option(optionclass, ...classargs) {
|
||||||
const o = subsects_section.taboption('general', optionclass, ...classargs);
|
const o = subsects_section.taboption('general', optionclass, ...classargs);
|
||||||
o.modalonly = true;
|
o.modalonly = true;
|
||||||
|
|||||||
@@ -93,6 +93,9 @@ parse_sections_options() {
|
|||||||
append_commasep_list "$config" exclude_domains udp_dport_filter
|
append_commasep_list "$config" exclude_domains udp_dport_filter
|
||||||
append_opts_btoggler "$config" quic_drop
|
append_opts_btoggler "$config" quic_drop
|
||||||
|
|
||||||
|
config_get value "$config" section_post_args
|
||||||
|
OPTS="$OPTS $value"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_general_options() {
|
parse_general_options() {
|
||||||
|
|||||||
Reference in New Issue
Block a user