mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-04 20:42:07 +03:00
Code cleanup: pattern matching and minor fixes
This commit is contained in:
@@ -1040,8 +1040,8 @@ public static class ConfigHandler
|
||||
|
||||
if (profileItem.StreamSecurity.IsNotEmpty())
|
||||
{
|
||||
if (profileItem.StreamSecurity != Global.StreamSecurity
|
||||
&& profileItem.StreamSecurity != Global.StreamSecurityReality)
|
||||
if (profileItem.StreamSecurity is not Global.StreamSecurity
|
||||
and not Global.StreamSecurityReality)
|
||||
{
|
||||
profileItem.StreamSecurity = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user