Add trojan fallback for ALPN #31

This commit is contained in:
zakuwaki
2022-08-25 13:35:48 +08:00
committed by 世界
parent fd5ac69a35
commit 59a39e66b1
4 changed files with 83 additions and 26 deletions

View File

@@ -23,9 +23,15 @@
],
"tls": {},
"fallback": {
"server": "127.0.0.0.1",
"server": "127.0.0.1",
"server_port": 8080
},
"fallback_for_alpn": {
"http/1.1": {
"server": "127.0.0.1",
"server_port": 8081
}
},
"transport": {}
}
]
@@ -50,7 +56,13 @@ TLS configuration, see [TLS](/configuration/shared/tls/#inbound).
There is no evidence that GFW detects and blocks Trojan servers based on HTTP responses, and opening the standard http/s port on the server is a much bigger signature.
Fallback server configuration. Disabled if empty.
Fallback server configuration. Disabled if `fallback` and `fallback_for_alpn` are empty.
#### fallback_for_alpn
Fallback server configuration for specified ALPN.
If not empty, TLS fallback requests with ALPN not in this table will be rejected.
#### transport