This commit is contained in:
2026-10-25 17:52:52 +08:00
parent eea818f5f4
commit 5ec7815a13
10 changed files with 361 additions and 199 deletions
-2
View File
@@ -18,8 +18,6 @@ pub fn build_tls_acceptor() -> Arc<rustls::ServerConfig> {
.with_single_cert(cert_chain, key)
.unwrap();
// 真实服务器(dailygn / 拼锁 API)只支持 HTTP/1.1(ALPN 实测不会选 h2),
// 所以这里也只声明 http/1.1,让 App 用 HTTP/1.1 跟我们握手,避免跨协议转换。
config.alpn_protocols = vec![b"http/1.1".to_vec()];
Arc::new(config)