mirror of https://github.com/ospab/ostp.git
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:
parent
0b3ee775e4
commit
6713d70071
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue