fix(port): skip unsupported Windows transparent listeners

This commit is contained in:
wonfen
2026-08-20 08:57:09 +08:00
parent b80bca01da
commit 12c85162d6
+4
View File
@@ -230,6 +230,10 @@ fn proxy_claims(config: &Mapping) -> Result<Vec<BindClaim>> {
let addresses = proxy_bind_addresses(config)?;
let mut claims = Vec::new();
for (key, name, transports) in PROXY_LISTENERS {
#[cfg(target_os = "windows")]
if matches!(key, "redir-port" | "tproxy-port") {
continue;
}
let Some(port) = mapping_port(config, key)? else {
continue;
};