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();
let proxy_str = format!("http={};https={}", proxy_addr, proxy_addr);
let proxy_str = proxy_addr.to_string();
let _ = Command::new("reg")
.args([
"add",

View File

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