mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-31 14:40:36 +03:00
Add new flags from #132 to configuration interfaces
This commit is contained in:
@@ -34,6 +34,16 @@ o:depends("faking_strategy", "randseq")
|
||||
o = s:option(Value, "fake_sni_seq_len", "fake sni seq len", "This flag specifies youtubeUnblock to build a complicated construction of fake client hello packets. length determines how much fakes will be sent.")
|
||||
o:depends("fake_sni", 1)
|
||||
|
||||
o = s:option(ListValue, "fake_sni_type", "fake sni type", "This flag specifies which faking message type should be used for fake packets. For random, the message of the random length and with random payload will be sent. For default the default payload (sni=www.google.com) is used. And for the custom option, the payload from --fake-custom-payload section utilized. Defaults to <code>default</code>.")
|
||||
o:value("default", "default")
|
||||
o:value("custom", "custom")
|
||||
o:value("random", "random")
|
||||
o.widget="radio"
|
||||
o:depends("fake_sni", 1)
|
||||
|
||||
o = s:option(Value, "fake_custom_payload", "fake custom payload", "Useful with --fake-sni-type=custom. You should specify the payload for fake message manually. Use hex format: --fake-custom-payload=0001020304 mean that 5 bytes sequence: 0x00, 0x01, 0x02, 0x03, 0x04 used as fake.")
|
||||
o:depends("fake_sni_type", "custom")
|
||||
|
||||
o = s:option(ListValue, "frag", "fragmentation strategy", "Specifies the fragmentation strategy for the packet. Tcp is used by default. Ip fragmentation may be blocked by DPI system. None specifies no fragmentation. Probably this won't work, but may be will work for some fake sni strategies.")
|
||||
o:value("tcp", "tcp")
|
||||
o:value("ip", "ip")
|
||||
@@ -145,6 +155,13 @@ function fwo.write(self, section)
|
||||
sys.call("/etc/init.d/firewall reload")
|
||||
end
|
||||
|
||||
local rso = bs:option(Button, "_reset_settings", "Reset settins to defaults")
|
||||
rso.inputtitle = "Reset"
|
||||
rso.inputstyle = "negative"
|
||||
function rso.write(self, section)
|
||||
sys.call("/usr/share/youtubeUnblock/youtubeUnblock_defaults.sh --force")
|
||||
end
|
||||
|
||||
local logs = sys.exec("logread -l 800 -p youtubeUnblock | grep youtubeUnblock | sed '1!G;h;$!d'")
|
||||
local o = bs:option(DummyValue, "_logs", "Logs")
|
||||
o.rawhtml = true
|
||||
|
||||
Reference in New Issue
Block a user