Skip to content

Commit 6580712

Browse files
committed
up
1 parent ea80ad9 commit 6580712

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
server = "0.0.0.0:10002"
2+
dual_stack = false
3+
4+
[[acl]]
5+
addr = "localhost"
6+
outbound = "drop"
7+
8+
[users]
9+
"00000000-0000-0000-0000-000000000001" = "passwd"
10+
alpn = ["h3"]
11+
12+
[tls]
13+
certificate = "/opt/tuic/fullchain.pem"
14+
private_key = "/opt/tuic/privkey.pem"
15+
16+
[quic.congestion_control]
17+
controller = "bbr"

clash-lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public-suffix = "0.1"
160160
murmur3 = "0.5"
161161

162162
arti-client = { version = "0.34", optional = true, default-features = false, features = ["tokio", "rustls", "static-sqlite"] }
163-
tor-rtcompat = { version = "0.35", optional = true, default-features = false }
163+
tor-rtcompat = { version = "0.35", optional = true, default-features = false, features = ["rustls"] }
164164

165165
# tuic
166166
tuic = { tag = "v1.5.2", optional = true, git = "https://github.com/Itsusinn/tuic.git" }

clash-lib/src/proxy/tuic/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,14 +382,14 @@ mod tests {
382382
use super::*;
383383
async fn get_tuic_runner() -> anyhow::Result<DockerTestRunner> {
384384
let test_config_dir = test_config_base_dir();
385-
let conf = test_config_dir.join("tuic.json");
385+
let conf = test_config_dir.join("tuic.toml");
386386
let cert = test_config_dir.join("example.org.pem");
387387
let key = test_config_dir.join("example.org-key.pem");
388388

389389
DockerTestRunnerBuilder::new()
390390
.image(IMAGE_TUIC)
391391
.mounts(&[
392-
(conf.to_str().unwrap(), "/etc/tuic/config.json"),
392+
(conf.to_str().unwrap(), "/etc/tuic/config.toml"),
393393
(cert.to_str().unwrap(), "/opt/tuic/fullchain.pem"),
394394
(key.to_str().unwrap(), "/opt/tuic/privkey.pem"),
395395
])

0 commit comments

Comments
 (0)