wiki link

This commit is contained in:
ssrlive 2024-02-24 14:22:37 +08:00
parent 129450a9db
commit b11e49b455
2 changed files with 7 additions and 1 deletions

View file

@ -7,6 +7,8 @@ A tunnel interface for HTTP and SOCKS proxies on Linux, Android, macOS, iOS and
[![Download](https://img.shields.io/crates/d/tun2proxy.svg)](https://crates.io/crates/tun2proxy)
[![License](https://img.shields.io/crates/l/tun2proxy.svg?style=flat)](https://github.com/blechschmidt/tun2proxy/blob/master/LICENSE)
> Additional information can be found in the [wiki](https://github.com/blechschmidt/tun2proxy/wiki)
## Features
- HTTP proxy support (unauthenticated, basic and digest auth)
- SOCKS4 and SOCKS5 support (unauthenticated, username/password auth)

View file

@ -22,6 +22,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
f.write_all(format!("Failed to copy 'wintun.dll': {}\r\n", e).as_bytes())?;
} else {
f.write_all(format!("Copied 'wintun.dll' to '{}'\r\n", dst_path.display()).as_bytes())?;
// Set the modified time to the current time, or the publishing process will fail.
let file = std::fs::OpenOptions::new().write(true).open(&dst_path)?;
file.set_modified(std::time::SystemTime::now())?;
}
}
Ok(())
@ -43,7 +47,7 @@ fn get_cargo_target_dir() -> Result<std::path::PathBuf, Box<dyn std::error::Erro
Ok(target_dir.ok_or("not found")?.to_path_buf())
}
#[cfg(target_os = "windows")]
#[allow(dead_code)]
fn get_wintun_bin_relative_path() -> Result<std::path::PathBuf, Box<dyn std::error::Error>> {
let dll_path = if cfg!(target_arch = "x86") {
"wintun/bin/x86/wintun.dll"