Disable IPv6 to solve DualMode issue accepted/tizen/unified/20220112.043624 submit/tizen/20220112.042018
authorWoongsuk Cho <ws77.cho@samsung.com>
Wed, 12 Jan 2022 04:10:50 +0000 (13:10 +0900)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Wed, 12 Jan 2022 04:22:08 +0000 (13:22 +0900)
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

index c7e1577..9592102 100644 (file)
@@ -376,6 +376,9 @@ int CoreRuntime::initialize(const char* appType, LaunchMode launchMode)
        // Disable config cache to set environment after coreclr_initialize()
        putenv(const_cast<char *>("COMPlus_DisableConfigCache=1"));
 
+       // Disable IPv6 to solve Dual Mode issue (temporal patch)
+       putenv(const_cast<char *>("DOTNET_SYSTEM_NET_DISABLEIPV6=1"));
+
        // read string from external file and set them to environment value.
        setEnvFromFile();