mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
fix: remove unused redir-port and tproxy-port on Windows (#3969)
Directly remove redir-port and tproxy-port configurations on Windows platform
This commit is contained in:
@@ -214,6 +214,12 @@ pub async fn enhance() -> (Mapping, Vec<String>, HashMap<String, ResultLog>) {
|
|||||||
config.remove("port");
|
config.remove("port");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
{
|
||||||
|
if key.as_str() == Some("redir-port") || key.as_str() == Some("tproxy-port") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
#[cfg(not(target_os = "windows"))]
|
#[cfg(not(target_os = "windows"))]
|
||||||
{
|
{
|
||||||
if key.as_str() == Some("redir-port") && !redir_enabled {
|
if key.as_str() == Some("redir-port") && !redir_enabled {
|
||||||
|
|||||||
Reference in New Issue
Block a user