mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-06 16:14:11 +00:00
12 lines
283 B
Rust
12 lines
283 B
Rust
fn main() {
|
|
// Enable redir (transparent proxy) for these targets
|
|
if cfg!(any(
|
|
target_os = "linux",
|
|
target_os = "macos",
|
|
target_os = "freebsd",
|
|
target_os = "openbsd"
|
|
)) {
|
|
println!("cargo:rustc-cfg=feature=\"local-redir\"")
|
|
}
|
|
}
|