Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
fix: change default port
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi authored Oct 31, 2023
1 parent b4301ed commit 1f1e743
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src-tauri/src/config/clash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,23 @@ impl IClashTemp {
pub fn template() -> Self {
let mut map = Mapping::new();

map.insert("mixed-port".into(), 7890.into());
map.insert(
"mixed-port".into(),
match cfg!(feature = "default-meta") {
false => 7890.into(),
true => 7898.into(),
},
);
map.insert("log-level".into(), "info".into());
map.insert("allow-lan".into(), false.into());
map.insert("mode".into(), "rule".into());
map.insert("external-controller".into(), "127.0.0.1:9090".into());
map.insert(
"external-controller".into(),
match cfg!(feature = "default-meta") {
false => "127.0.0.1:9090".into(),
true => "127.0.0.1:9098".into(),
},
);
map.insert("secret".into(), "".into());

Self(map)
Expand Down

0 comments on commit 1f1e743

Please sign in to comment.