Network: Fix minor issues with IP address parsing and add tests

This commit is contained in:
Jérôme Leclercq
2022-02-24 12:38:08 +01:00
parent 13f2132110
commit 7dbaed9aa5
4 changed files with 170 additions and 33 deletions

View File

@@ -57,6 +57,9 @@ namespace Nz
std::string TranslateCanonicalName(const wchar_t* str)
{
if (!str)
return {};
return FromWideString(str);
}
#else
@@ -92,6 +95,9 @@ namespace Nz
std::string TranslateCanonicalName(const char* str)
{
if (!str)
return {};
return str;
}
#endif