diff --git a/docs/examples/shadowtls.md b/docs/examples/shadowtls.md new file mode 100644 index 00000000..5335d399 --- /dev/null +++ b/docs/examples/shadowtls.md @@ -0,0 +1,55 @@ +#### Server + +```json +{ + "inbounds": [ + { + "type": "shadowtls", + "listen": "::", + "listen_port": 4443, + "handshake": { + "server": "google.com", + "server_port": 443 + }, + "detour": "shadowsocks-in" + }, + { + "type": "shadowsocks", + "tag": "shadowsocks-in", + "listen": "127.0.0.1", + "method": "2022-blake3-aes-128-gcm", + "password": "8JCsPssfgS8tiRwiMlhARg==" + } + ] +} +``` + +#### Client + +```json +{ + "outbounds": [ + { + "type": "shadowsocks", + "method": "2022-blake3-aes-128-gcm", + "password": "8JCsPssfgS8tiRwiMlhARg==", + "detour": "shadowtls-out", + "multiplex": { + "enabled": 1, + "max_connections": 4, + "min_streams": 4 + } + }, + { + "type": "shadowtls", + "tag": "shadowtls-out", + "server": "127.0.0.1", + "server_port": 4443, + "tls": { + "enabled": true, + "server_name": "google.com" + } + } + ] +} +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index f51b298d..5a5579cd 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -93,6 +93,7 @@ nav: - Shadowsocks Server: examples/ss-server.md - Shadowsocks Client: examples/ss-client.md - Shadowsocks Tun: examples/ss-tun.md + - ShadowTLS: examples/shadowtls.md - DNS Hijack: examples/dns-hijack.md - Contributing: - contributing/index.md diff --git a/test/shadowtls_test.go b/test/shadowtls_test.go index 2e9c088c..b4e6067b 100644 --- a/test/shadowtls_test.go +++ b/test/shadowtls_test.go @@ -78,7 +78,6 @@ func TestShadowTLS(t *testing.T) { TLS: &option.OutboundTLSOptions{ Enabled: true, ServerName: "google.com", - MaxVersion: "1.2", }, }, }, @@ -150,7 +149,6 @@ func TestShadowTLSOutbound(t *testing.T) { TLS: &option.OutboundTLSOptions{ Enabled: true, ServerName: "google.com", - MaxVersion: "1.2", }, }, },