Support for #207

This commit is contained in:
Vadim Vetrov
2024-12-30 12:37:41 +03:00
parent b49d3b6bc0
commit 9e299d2592
6 changed files with 19 additions and 8 deletions

View File

@@ -6,8 +6,8 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=youtubeUnblock PKG_NAME:=youtubeUnblock
PKG_VERSION:=1.0.0 PKG_VERSION:=1.0.0
PKG_REV:=bc345ed6d489f184116d1b3f8e7037c928710d8b PKG_REV:=254b36359953c8cee61982543cf2ace8e7745273
PKG_RELEASE:=5 PKG_RELEASE:=6
PKG_SOURCE_URL:=https://github.com/Waujito/youtubeUnblock.git PKG_SOURCE_URL:=https://github.com/Waujito/youtubeUnblock.git
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git

View File

@@ -157,7 +157,7 @@ return view.extend({
o.default = o.disabled; o.default = o.disabled;
o.rmempty = false; o.rmempty = false;
o = s.option(form.ListValue, "udp_mode", _("UDP mode"), _("This flag specifies udp handling strategy. If drop udp packets will be dropped (useful for quic when browser can fallback to tcp), if fake udp will be faked.")); o = s.option(form.ListValue, "udp_mode", _("UDP mode"), _("Faking strategy for udp. <code>checksum</code> will fake UDP checksum, <code>ttl</code> won't fake but will make UDP content relatively small, <code>none</code> is no faking."));
o.widget = "radio" o.widget = "radio"
o.depends("quic_drop", "0"); o.depends("quic_drop", "0");
o.value("fake", "fake"); o.value("fake", "fake");
@@ -165,6 +165,16 @@ return view.extend({
o.default = "fake"; o.default = "fake";
o.rmempty = false; o.rmempty = false;
o = s.option(form.ListValue, "udp_faking_strategy", _("UDP faking strategy"), _("This flag specifies udp handling strategy. If drop udp packets will be dropped (useful for quic when browser can fallback to tcp), if fake udp will be faked."));
o.widget = "radio"
o.depends("quic_drop", "0");
o.value("none", "none");
o.value("checksum", "checksum");
o.value("ttl", "ttl");
o.default = "none";
o.rmempty = false;
o = s.option(form.Value, "udp_fake_seq_len", _("UDP fake seq length"), _("Specifies how much faking packets will be sent over the network.")); o = s.option(form.Value, "udp_fake_seq_len", _("UDP fake seq length"), _("Specifies how much faking packets will be sent over the network."));
o.depends("udp_mode", "fake"); o.depends("udp_mode", "fake");
o.default = 6 o.default = 6

View File

@@ -4,8 +4,8 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=youtubeUnblock PKG_NAME:=youtubeUnblock
PKG_VERSION:=1.0.0 PKG_VERSION:=1.0.0
PKG_REV:=bc345ed6d489f184116d1b3f8e7037c928710d8b PKG_REV:=254b36359953c8cee61982543cf2ace8e7745273
PKG_RELEASE:=5 PKG_RELEASE:=6
PKG_SOURCE_URL:=https://github.com/Waujito/youtubeUnblock.git PKG_SOURCE_URL:=https://github.com/Waujito/youtubeUnblock.git
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git

View File

@@ -89,7 +89,7 @@ parse_sections_options() {
fi fi
append_opts_boolean "$config" fake_sni frag_sni_reverse frag_sni_faked frag_middle_sni synfake append_opts_boolean "$config" fake_sni frag_sni_reverse frag_sni_faked frag_middle_sni synfake
append_opts "$config" fake_sni_seq_len fake_sni_type fake_custom_payload faking_strategy faking_ttl fake_seq_offset frag frag_sni_pos fk_winsize seg2delay synfake_len sni_detection udp_mode udp_fake_seq_len udp_fake_len udp_filter_quic append_opts "$config" fake_sni_seq_len fake_sni_type fake_custom_payload faking_strategy faking_ttl fake_seq_offset frag frag_sni_pos fk_winsize seg2delay synfake_len sni_detection udp_mode udp_fake_seq_len udp_fake_len udp_filter_quic udp_faking_strategy
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

View File

@@ -51,5 +51,6 @@ set youtubeUnblock.@section[0].udp_mode='fake'
set youtubeUnblock.@section[0].udp_fake_seq_len='6' set youtubeUnblock.@section[0].udp_fake_seq_len='6'
set youtubeUnblock.@section[0].udp_fake_len='64' set youtubeUnblock.@section[0].udp_fake_len='64'
set youtubeUnblock.@section[0].udp_filter_quic='disabled' set youtubeUnblock.@section[0].udp_filter_quic='disabled'
set youtubeUnblock.@section[0].udp_faking_strategy='none'
EOI EOI
uci commit uci commit

View File

@@ -4,8 +4,8 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=youtubeUnblockEntware PKG_NAME:=youtubeUnblockEntware
PKG_VERSION:=1.0.0 PKG_VERSION:=1.0.0
PKG_REV:=bc345ed6d489f184116d1b3f8e7037c928710d8b PKG_REV:=254b36359953c8cee61982543cf2ace8e7745273
PKG_RELEASE:=5 PKG_RELEASE:=6
PKG_SOURCE_URL:=https://github.com/Waujito/youtubeUnblock.git PKG_SOURCE_URL:=https://github.com/Waujito/youtubeUnblock.git
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git