diff --git a/leaf/Cargo.toml b/leaf/Cargo.toml index f20d1a862..ee21fdea5 100644 --- a/leaf/Cargo.toml +++ b/leaf/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "leaf" -version = "0.1.4" +version = "0.1.5" authors = ["eycorsican "] edition = "2021" build = "build.rs" diff --git a/leaf/tests/test_fragment.rs b/leaf/tests/test_fragment.rs index 1c4f62faf..3abdf6440 100644 --- a/leaf/tests/test_fragment.rs +++ b/leaf/tests/test_fragment.rs @@ -12,6 +12,9 @@ mod common; fn test_fragment() { let config1 = r#" { + "log": { + "level": "info" + }, "inbounds": [ { "protocol": "socks", @@ -37,13 +40,25 @@ fn test_fragment() { { "protocol": "fragment", "settings" : { - "packets" : "0-1", + "packets" : "1-3", "length" : "2-87", "interval" : "8-15" }, "tag" : "fragment" } - ] + ], + "router": { + "rules": [ + { + "network": ["tcp"], + "target": "chain-fragment-direct" + }, + { + "network": ["udp"], + "target": "direct" + } + ] + } } "#;