@@ -143,12 +143,13 @@ o:value("hysteria2", translate("Hysteria2 ")..translate("(Only Meta Core)"))
143
143
o :value (" wireguard" , translate (" WireGuard" ).. translate (" (Only Meta Core)" ))
144
144
o :value (" tuic" , translate (" Tuic" ).. translate (" (Only Meta Core)" ))
145
145
o :value (" snell" , translate (" Snell" ))
146
- o :value (" mieru" , translate (" Mieru" ))
146
+ o :value (" mieru" , translate (" Mieru" ).. translate (" (Only Meta Core)" ))
147
+ o :value (" anytls" , translate (" AnyTLS" ).. translate (" (Only Meta Core)" ))
147
148
o :value (" socks5" , translate (" Socks5" ))
148
149
o :value (" http" , translate (" HTTP(S)" ))
149
- o :value (" direct" , translate (" DIRECT" ))
150
- o :value (" dns" , translate (" DNS" ))
151
- o :value (" ssh" , translate (" SSH" ))
150
+ o :value (" direct" , translate (" DIRECT" ).. translate ( " (Only Meta Core) " ) )
151
+ o :value (" dns" , translate (" DNS" ).. translate ( " (Only Meta Core) " ) )
152
+ o :value (" ssh" , translate (" SSH" ).. translate ( " (Only Meta Core) " ) )
152
153
153
154
o .description = translate (" Using incorrect encryption mothod may causes service fail to start" )
154
155
@@ -169,6 +170,7 @@ o:depends("type", "hysteria2")
169
170
o :depends (" type" , " wireguard" )
170
171
o :depends (" type" , " tuic" )
171
172
o :depends (" type" , " mieru" )
173
+ o :depends (" type" , " anytls" )
172
174
o :depends (" type" , " snell" )
173
175
o :depends (" type" , " socks5" )
174
176
o :depends (" type" , " http" )
@@ -188,6 +190,7 @@ o:depends("type", "hysteria2")
188
190
o :depends (" type" , " wireguard" )
189
191
o :depends (" type" , " tuic" )
190
192
o :depends (" type" , " mieru" )
193
+ o :depends (" type" , " anytls" )
191
194
o :depends (" type" , " snell" )
192
195
o :depends (" type" , " socks5" )
193
196
o :depends (" type" , " http" )
@@ -215,6 +218,7 @@ o:depends("type", "ssr")
215
218
o :depends (" type" , " trojan" )
216
219
o :depends (" type" , " hysteria2" )
217
220
o :depends (" type" , " mieru" )
221
+ o :depends (" type" , " anytls" )
218
222
219
223
-- [[ Mieru ]]--
220
224
o = s :option (Value , " port_range" , translate (" Port Range" ))
@@ -447,6 +451,7 @@ o:depends("type", "trojan")
447
451
o :depends ({type = " snell" , snell_version = " 3" })
448
452
o :depends (" type" , " wireguard" )
449
453
o :depends (" type" , " direct" )
454
+ o :depends (" type" , " anytls" )
450
455
451
456
o = s :option (ListValue , " udp_over_tcp" , translate (" udp-over-tcp" ))
452
457
o .rmempty = true
@@ -634,6 +639,7 @@ o:depends("type", "vless")
634
639
o :depends (" type" , " hysteria" )
635
640
o :depends (" type" , " hysteria2" )
636
641
o :depends (" type" , " tuic" )
642
+ o :depends (" type" , " anytls" )
637
643
638
644
-- [[ TLS ]]--
639
645
o = s :option (ListValue , " tls" , translate (" TLS" ))
@@ -680,6 +686,7 @@ o:depends("type", "trojan")
680
686
o :depends (" type" , " http" )
681
687
o :depends (" type" , " hysteria" )
682
688
o :depends (" type" , " hysteria2" )
689
+ o :depends (" type" , " anytls" )
683
690
684
691
-- [[ headers ]]--
685
692
o = s :option (DynamicList , " http_headers" , translate (" headers" ))
@@ -723,6 +730,7 @@ o.rmempty = true
723
730
o :value (" h2" )
724
731
o :value (" http/1.1" )
725
732
o :depends (" type" , " trojan" )
733
+ o :depends (" type" , " anytls" )
726
734
727
735
-- [[ alpn ]]--
728
736
o = s :option (DynamicList , " hysteria_alpn" , translate (" alpn" ))
@@ -872,6 +880,22 @@ o:value("true")
872
880
o :value (" false" )
873
881
o :depends (" type" , " vmess" )
874
882
883
+ -- [[ AnyTLS ]]--
884
+ o = s :option (Value , " idle_session_check_interval" , translate (" idle-session-check-interval" ))
885
+ o .rmempty = true
886
+ o .default = " 30"
887
+ o :depends (" type" , " anytls" )
888
+
889
+ o = s :option (Value , " idle_session_timeout" , translate (" idle-session-timeout" ))
890
+ o .rmempty = true
891
+ o .default = " 30"
892
+ o :depends (" type" , " anytls" )
893
+
894
+ o = s :option (Value , " min_idle_session" , translate (" min-idle-session" ))
895
+ o .rmempty = true
896
+ o .default = " 0"
897
+ o :depends (" type" , " anytls" )
898
+
875
899
-- [[ Fast Open ]]--
876
900
o = s :option (ListValue , " fast_open" , translate (" Fast Open" ))
877
901
o .rmempty = true
@@ -929,6 +953,7 @@ o:depends({type = "vmess", obfs_vmess = "websocket"})
929
953
o :depends ({type = " vmess" , obfs_vmess = " http" })
930
954
o :depends ({type = " vmess" , obfs_vmess = " h2" })
931
955
o :depends ({type = " vmess" , obfs_vmess = " grpc" })
956
+ o :depends (" type" , " anytls" )
932
957
933
958
-- [[ ip version ]]--
934
959
o = s :option (ListValue , " ip_version" , translate (" IP Version" ).. translate (" (Only Meta Core)" ))
0 commit comments