Skip to content

Commit 78cb6db

Browse files
authored
Merge pull request #1933 from zxlhhyccc/tuic
luci-app-ssr-plus: hysteria2 hopInterval support range
2 parents 9581c96 + a27c78c commit 78cb6db

File tree

4 files changed

+516
-477
lines changed

4 files changed

+516
-477
lines changed

luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ o = s:option(Value, "port_range", translate("Port hopping range"))
609609
o.description = translate("Format as 10000:20000 or 10000-20000 Multiple groups are separated by commas (,).")
610610
o:depends({type = "hysteria2", flag_port_hopping = true})
611611
o:depends({type = "v2ray", v2ray_protocol = "hysteria2", flag_port_hopping = true})
612-
--o.datatype = "portrange"
612+
o.datatype = "or(uinteger,portrange)"
613613
o.rmempty = true
614614

615615
o = s:option(Flag, "flag_transport", translate("Enable Transport Protocol Settings"))
@@ -624,9 +624,10 @@ o.default = "udp"
624624
o.rmempty = true
625625

626626
o = s:option(Value, "hopinterval", translate("Port Hopping Interval(Unit:Second)"))
627+
o.description = translate("Supports a fixed value or a random range (e.g., 30, 5-30), minimum 5.")
627628
o:depends({type = "hysteria2", flag_transport = true, flag_port_hopping = true})
628629
o:depends({type = "v2ray", v2ray_protocol = "hysteria2", flag_port_hopping = true})
629-
o.datatype = "uinteger"
630+
o.datatype = "or(uinteger,portrange)"
630631
o.rmempty = true
631632
o.default = "30"
632633

0 commit comments

Comments
 (0)