diff --git a/README.md b/README.md index 123b257..15ab769 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/build.rs b/build.rs index 0c9159c..8cfb150 100644 --- a/build.rs +++ b/build.rs @@ -22,6 +22,10 @@ fn main() -> Result<(), Box> { 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 Result> { let dll_path = if cfg!(target_arch = "x86") { "wintun/bin/x86/wintun.dll"