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

@@ -157,7 +157,7 @@ return view.extend({
o.default = o.disabled;
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.depends("quic_drop", "0");
o.value("fake", "fake");
@@ -165,6 +165,16 @@ return view.extend({
o.default = "fake";
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.depends("udp_mode", "fake");
o.default = 6