mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-20 13:59:10 +00:00
wiki link
This commit is contained in:
parent
129450a9db
commit
b11e49b455
2 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,8 @@ A tunnel interface for HTTP and SOCKS proxies on Linux, Android, macOS, iOS and
|
|||
[](https://crates.io/crates/tun2proxy)
|
||||
[](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)
|
||||
|
|
6
build.rs
6
build.rs
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue