github.com/sagernet/sing-box@v1.9.0-rc.20/docs/configuration/outbound/shadowtls.zh.md (about) 1 ### 结构 2 3 ```json 4 { 5 "type": "shadowtls", 6 "tag": "st-out", 7 8 "server": "127.0.0.1", 9 "server_port": 1080, 10 "version": 3, 11 "password": "fuck me till the daylight", 12 "tls": {}, 13 14 ... // 拨号字段 15 } 16 ``` 17 18 ### 字段 19 20 #### server 21 22 ==必填== 23 24 服务器地址。 25 26 #### server_port 27 28 ==必填== 29 30 服务器端口。 31 32 #### version 33 34 ShadowTLS 协议版本。 35 36 | 值 | 协议版本 | 37 |---------------|-----------------------------------------------------------------------------------------| 38 | `1` (default) | [ShadowTLS v1](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-en.md#v1) | 39 | `2` | [ShadowTLS v2](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-en.md#v2) | 40 | `3` | [ShadowTLS v3](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-v3-en.md) | 41 42 #### password 43 44 设置密码。 45 46 仅在 ShadowTLS v2/v3 协议中可用。 47 48 #### tls 49 50 ==必填== 51 52 TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#outbound)。 53 54 ### 拨号字段 55 56 参阅 [拨号字段](/zh/configuration/shared/dial/)。