Skip to content

Commit

Permalink
chore(config)!: modify default external-controller port (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 authored Feb 14, 2024
1 parent f8bd9bd commit 0ac8ca8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/tauri/src/config/clash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ impl IClashTemp {
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());
#[cfg(debug_assertions)]
map.insert("external-controller".into(), "127.0.0.1:9872".into());
#[cfg(not(debug_assertions))]
map.insert("external-controller".into(), "127.0.0.1:17650".into());
map.insert("secret".into(), "".into());
#[cfg(feature = "default-meta")]
map.insert("unified-delay".into(), true.into());
Expand Down

0 comments on commit 0ac8ca8

Please sign in to comment.