github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/docs/configuration/inbound/shadowtls.md (about) 1 ### Structure 2 3 ```json 4 { 5 "type": "shadowtls", 6 "tag": "st-in", 7 8 ... // Listen Fields 9 10 "version": 3, 11 "password": "fuck me till the daylight", 12 "users": [ 13 { 14 "name": "sekai", 15 "password": "8JCsPssfgS8tiRwiMlhARg==" 16 } 17 ], 18 "handshake": { 19 "server": "google.com", 20 "server_port": 443, 21 22 ... // Dial Fields 23 }, 24 "handshake_for_server_name": { 25 "example.com": { 26 "server": "example.com", 27 "server_port": 443, 28 29 ... // Dial Fields 30 } 31 }, 32 "strict_mode": false 33 } 34 ``` 35 36 ### Listen Fields 37 38 See [Listen Fields](/configuration/shared/listen) for details. 39 40 ### Fields 41 42 #### version 43 44 ShadowTLS protocol version. 45 46 | Value | Protocol Version | 47 |---------------|-----------------------------------------------------------------------------------------| 48 | `1` (default) | [ShadowTLS v1](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-en.md#v1) | 49 | `2` | [ShadowTLS v2](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-en.md#v2) | 50 | `3` | [ShadowTLS v3](https://github.com/ihciah/shadow-tls/blob/master/docs/protocol-v3-en.md) | 51 52 #### password 53 54 ShadowTLS password. 55 56 Only available in the ShadowTLS protocol 2. 57 58 59 #### users 60 61 ShadowTLS users. 62 63 Only available in the ShadowTLS protocol 3. 64 65 #### handshake 66 67 ==Required== 68 69 Handshake server address and [Dial options](/configuration/shared/dial). 70 71 #### handshake_for_server_name 72 73 Handshake server address and [Dial options](/configuration/shared/dial) for specific server name. 74 75 Only available in the ShadowTLS protocol 2/3. 76 77 #### strict_mode 78 79 ShadowTLS strict mode. 80 81 Only available in the ShadowTLS protocol 3.