Support ipv6

Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
This commit is contained in:
Dennis Felsing 2021-05-05 17:32:37 +02:00 committed by GitHub
parent 6a6ba69189
commit 6bd41d5dd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ public:
if(pConnect[0])
{
NETADDR Connect;
if(net_host_lookup(pConnect, &Connect, NETTYPE_IPV4) == 0)
if(net_host_lookup(pConnect, &Connect, NETTYPE_ALL) == 0)
{
m_ConnectAddr = Connect;
m_GotConnectAddr = true;