fix minor bugs

This commit is contained in:
AmberisMyShiba 2023-10-09 11:21:34 +08:00 committed by sbwml
parent 224b0fce37
commit bda808486d

View File

@ -220,7 +220,7 @@ o:depends("type", "ss_rust")
o:depends("type", "v2ray")
o:depends("type", "trojan")
o:depends("type", "naiveproxy")
o:depends({type = "hysteria",port_hopping = "0"})
o:depends({type = "hysteria",port_hopping = false})
o:depends("type", "tuic")
o:depends("type", "shadowtls")
o:depends("type", "socks5")
@ -340,13 +340,13 @@ o.rmempty = true
o.default = "0"
o = s:option(Value, "hopinterval", translate("Port Hopping Interval(Unit:Second)"))
o:depends({type = "hysteria", port_hopping = "1"})
o:depends({type = "hysteria", port_hopping = true})
o.datatype = "uinteger"
o.rmempty = true
o.default = "30"
o = s:option(Value, "port_range", translate("Port Range"))
o:depends({type = "hysteria", port_hopping = "1"})
o:depends({type = "hysteria", port_hopping = true})
o.rmempty = false
o = s:option(Flag, "lazy_mode", translate("Enable Lazy Mode"))