Skip to content

Commit

Permalink
fix fragment test
Browse files Browse the repository at this point in the history
  • Loading branch information
shiroedev2024 committed Apr 15, 2024
1 parent 201c573 commit 8b9d7b3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion leaf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "leaf"
version = "0.1.4"
version = "0.1.5"
authors = ["eycorsican <[email protected]>"]
edition = "2021"
build = "build.rs"
Expand Down
19 changes: 17 additions & 2 deletions leaf/tests/test_fragment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ mod common;
fn test_fragment() {
let config1 = r#"
{
"log": {
"level": "info"
},
"inbounds": [
{
"protocol": "socks",
Expand All @@ -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"
}
]
}
}
"#;

Expand Down

0 comments on commit 8b9d7b3

Please sign in to comment.