From 6713d7007103d78f2c2fcc6cb7dba27b7d33c2d2 Mon Sep 17 00:00:00 2001 From: ospab Date: Fri, 15 May 2026 00:36:28 +0300 Subject: [PATCH] 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 --- ostp-client/src/sysproxy.rs | 2 +- ostp/src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ostp-client/src/sysproxy.rs b/ostp-client/src/sysproxy.rs index 91a9ee9..93dfc75 100644 --- a/ostp-client/src/sysproxy.rs +++ b/ostp-client/src/sysproxy.rs @@ -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", diff --git a/ostp/src/main.rs b/ostp/src/main.rs index e777f35..37d2333 100644 --- a/ostp/src/main.rs +++ b/ostp/src/main.rs @@ -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),