Skip to content

Commit

Permalink
set DOTNET_EnableWriteXorExecute=0 under win10
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Jun 21, 2024
1 parent 74a0a93 commit 9039d40
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions v2rayN/v2rayN/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ private void Init()
Environment.Exit(0);
return;
}
//if (RuntimeInformation.ProcessArchitecture != Architecture.X86 && RuntimeInformation.ProcessArchitecture != Architecture.X64)
//{
// _config.guiItem.enableStatistics = false;
//}

//Under Win10
if (Environment.OSVersion.Version.Major < 10)
{
Environment.SetEnvironmentVariable("DOTNET_EnableWriteXorExecute", "0", EnvironmentVariableTarget.Process);
}
}

private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
Expand Down

0 comments on commit 9039d40

Please sign in to comment.