Fix: Simplify system proxy registry format to raw address and port, and restore safe defaults for tun.wintun_path and ipv4_address in client initialization template

This commit is contained in:
ospab 2026-05-15 00:36:28 +03:00
parent 0b3ee775e4
commit 6713d70071
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ pub fn enable_windows_proxy(proxy_addr: &str) {
]) ])
.output(); .output();
let proxy_str = format!("http={};https={}", proxy_addr, proxy_addr); let proxy_str = proxy_addr.to_string();
let _ = Command::new("reg") let _ = Command::new("reg")
.args([ .args([
"add", "add",

View File

@ -170,8 +170,8 @@ async fn main() -> Result<()> {
socks5_bind: Some("127.0.0.1:1088".to_string()), socks5_bind: Some("127.0.0.1:1088".to_string()),
tun: Some(TunConfig { tun: Some(TunConfig {
enable: false, enable: false,
wintun_path: None, wintun_path: Some("./wintun.dll".to_string()),
ipv4_address: None, ipv4_address: Some("10.1.0.2/24".to_string()),
}), }),
turn: None, turn: None,
debug: Some(false), debug: Some(false),