fix: external controller allow lan
This commit is contained in:
parent
5a35ea116f
commit
a120c8cf98
@ -68,6 +68,10 @@ impl ClashInfo {
|
|||||||
Some(val_str) => {
|
Some(val_str) => {
|
||||||
if val_str.starts_with(":") {
|
if val_str.starts_with(":") {
|
||||||
Some(format!("127.0.0.1{val_str}"))
|
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 {
|
} else {
|
||||||
Some(val_str.into())
|
Some(val_str.into())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user