浏览代码

documentation: Fix AnyTLS doc

世界 8 月之前
父节点
当前提交
73de2a7d07

+ 20 - 0
docs/configuration/inbound/anytls.md

@@ -1,3 +1,9 @@
+---
+icon: material/new-box
+---
+
+!!! question "Since sing-box 1.12.0"
+
 ### Structure
 
 ```json
@@ -34,6 +40,20 @@ AnyTLS users.
 
 AnyTLS padding scheme line array.
 
+Default padding scheme:
+
+```
+stop=8
+0=34-120
+1=100-400
+2=400-500,c,500-1000,c,400-500,c,500-1000,c,500-1000,c,400-500
+3=500-1000
+4=500-1000
+5=500-1000
+6=500-1000
+7=500-1000
+```
+
 #### tls
 
 TLS configuration, see [TLS](/configuration/shared/tls/#inbound).

+ 20 - 0
docs/configuration/inbound/anytls.zh.md

@@ -1,3 +1,9 @@
+---
+icon: material/new-box
+---
+
+!!! question "自 sing-box 1.12.0 起"
+
 ### 结构
 
 ```json
@@ -34,6 +40,20 @@ AnyTLS 用户。
 
 AnyTLS 填充方案行数组。
 
+默认填充方案:
+
+```
+stop=8
+0=34-120
+1=100-400
+2=400-500,c,500-1000,c,400-500,c,500-1000,c,500-1000,c,400-500
+3=500-1000
+4=500-1000
+5=500-1000
+6=500-1000
+7=500-1000
+```
+
 #### tls
 
 TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#inbound)。

+ 6 - 0
docs/configuration/outbound/anytls.md

@@ -1,3 +1,9 @@
+---
+icon: material/new-box
+---
+
+!!! question "Since sing-box 1.12.0"
+
 ### Structure
 
 ```json

+ 6 - 0
docs/configuration/outbound/anytls.zh.md

@@ -1,3 +1,9 @@
+---
+icon: material/new-box
+---
+
+!!! question "自 sing-box 1.12.0 起"
+
 ### 结构
 
 ```json

+ 2 - 0
mkdocs.yml

@@ -144,6 +144,7 @@ nav:
           - VLESS: configuration/inbound/vless.md
           - TUIC: configuration/inbound/tuic.md
           - Hysteria2: configuration/inbound/hysteria2.md
+          - AnyTLS: configuration/inbound/anytls.md
           - Tun: configuration/inbound/tun.md
           - Redirect: configuration/inbound/redirect.md
           - TProxy: configuration/inbound/tproxy.md
@@ -162,6 +163,7 @@ nav:
           - VLESS: configuration/outbound/vless.md
           - TUIC: configuration/outbound/tuic.md
           - Hysteria2: configuration/outbound/hysteria2.md
+          - AnyTLS: configuration/outbound/anytls.md
           - Tor: configuration/outbound/tor.md
           - SSH: configuration/outbound/ssh.md
           - DNS: configuration/outbound/dns.md