Skip to content
Snippets Groups Projects
Unverified Commit a120c8cf authored by GyDi's avatar GyDi
Browse files

fix: external controller allow lan

parent 5a35ea11
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,10 @@ impl ClashInfo {
Some(val_str) => {
if val_str.starts_with(":") {
Some(format!("127.0.0.1{val_str}"))
} else if val_str.starts_with("0.0.0.0:") {
Some(format!("127.0.0.1:{}", &val_str[8..]))
} else if val_str.starts_with("[::]:") {
Some(format!("127.0.0.1:{}", &val_str[5..]))
} else {
Some(val_str.into())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment