Merge pull request #1511 from domosekai/ipstr

Fix IPv6 address display in session info dialog
This commit is contained in:
Yihong Wu authored and GitHub committed 2021-12-09 12:55:10 +08:00
commit 528f313dbe
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -14871,7 +14871,7 @@ SOCK *NewSock()
UINT IPToUINT(IP *ip)
{
// Validate arguments
if (ip == NULL)
if (ip == NULL || IsIP6(ip))
{
return 0;
}