From bdd5de55938eef8c775a8d340cebbda783bf9ec6 Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Wed, 12 Jan 2022 13:10:50 +0900 Subject: [PATCH] Disable IPv6 to solve DualMode issue Due to Socket DualMode, IPv4 is converted to IPv6 socket. So, smack deny error occurs when accessing to localhost during TCT. It is a temporary patch that will be used until the IPv6 smack problem is fixed . --- NativeLauncher/launcher/lib/core_runtime.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NativeLauncher/launcher/lib/core_runtime.cc b/NativeLauncher/launcher/lib/core_runtime.cc index c7e1577..9592102 100644 --- a/NativeLauncher/launcher/lib/core_runtime.cc +++ b/NativeLauncher/launcher/lib/core_runtime.cc @@ -376,6 +376,9 @@ int CoreRuntime::initialize(const char* appType, LaunchMode launchMode) // Disable config cache to set environment after coreclr_initialize() putenv(const_cast("COMPlus_DisableConfigCache=1")); + // Disable IPv6 to solve Dual Mode issue (temporal patch) + putenv(const_cast("DOTNET_SYSTEM_NET_DISABLEIPV6=1")); + // read string from external file and set them to environment value. setEnvFromFile(); -- 2.34.1