Skip to content

Commit 9f4f866

Browse files
author
cht
committed
修复vmess无法运行的问题
1 parent a7fef3c commit 9f4f866

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/spider.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl Information {
8383
output
8484
}
8585
pub fn running_json(&self) -> String {
86-
if self.func == *"\"vmess\"" {
86+
if self.func == *"vmess" {
8787
format!(
8888
"{{
8989
\"inbounds\":[{{
@@ -102,7 +102,7 @@ impl Information {
102102
\"address\": \"{}\",
103103
\"port\":{},
104104
\"users\":[{{
105-
\"alterId\": \"{}\",
105+
\"alterId\": {},
106106
\"id\":\"{}\"
107107
}}]
108108
}}]
@@ -431,7 +431,7 @@ impl Information {
431431
}
432432
fn get_the_link(&self) -> String {
433433
let mut temp = String::new();
434-
if self.func == *"\"vmess\"" {
434+
if self.func == *"vmess" {
435435
temp.push_str(&format!(
436436
"vmess://{}:{}-{}@{}:{}/#{}",
437437
self.net.clone(),

0 commit comments

Comments
 (0)