mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 07:08:42 +08:00
fix: external controller allow lan
This commit is contained in:
1 parent
0586d4d7a9
commit
2798dc3d42
1 file changed
+4
@@ -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())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user