From: Woongsuk Cho Date: Wed, 12 Jan 2022 04:10:50 +0000 (+0900) Subject: Disable IPv6 to solve DualMode issue X-Git-Tag: submit/tizen/20220112.042018^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdd5de55938eef8c775a8d340cebbda783bf9ec6;p=platform%2Fcore%2Fdotnet%2Flauncher.git 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 . --- 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();