Fix config file to recognize mixed-port

This commit is contained in:
2dust
2022-07-27 19:57:08 +08:00
parent 2f49914ca0
commit 0a912feabb

View File

@@ -619,9 +619,10 @@ namespace clashN.Handler
} }
//Is Clash configuration //Is Clash configuration
if (clipboardData.IndexOf("port") >= 0 if (((clipboardData.IndexOf("port") >= 0 && clipboardData.IndexOf("socks-port") >= 0)
&& clipboardData.IndexOf("socks-port") >= 0 || clipboardData.IndexOf("mixed-port") >= 0)
&& clipboardData.IndexOf("proxies") >= 0) && clipboardData.IndexOf("proxies") >= 0
&& clipboardData.IndexOf("rules") >= 0)
{ } { }
else { return -1; } else { return -1; }