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 .
// 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();