Skip to content

Commit f6d53ce

Browse files
committed
修正了证书写入路径问题
1 parent 849cfee commit f6d53ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hiper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pub fn run_hiper(ctx: ExtEventSink, token: String, use_tun: bool) -> DynResult {
140140
let res = tinyget::get(format!("https://cert.mcer.cn/{}.yml", token))
141141
.send()
142142
.context("无法获取凭证证书,这有可能是因为下载超时或者是你的凭证无效")?;
143-
write_file_safe(&wintun_path, res.as_bytes()).context("无法保存凭证证书")?;
143+
write_file_safe(&cert_path, res.as_bytes()).context("无法保存凭证证书")?;
144144
}
145145

146146
if !use_tun && wintun_path.exists() {

0 commit comments

Comments
 (0)