From a1dff0f594aa908d1df47a20acacbab0e90cbcfe Mon Sep 17 00:00:00 2001 From: domosekai <54519668+domosekai@users.noreply.github.com> Date: Sun, 11 Jul 2021 16:15:29 +0000 Subject: [PATCH] Mayaqua/Network.c: Create UDP listener for every interface if ListenIP is wildcard --- src/Mayaqua/Network.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mayaqua/Network.c b/src/Mayaqua/Network.c index bdce46d6..4760b2b5 100644 --- a/src/Mayaqua/Network.c +++ b/src/Mayaqua/Network.c @@ -17620,7 +17620,7 @@ void UdpListenerThread(THREAD *thread, void *param) { IP *ip = LIST_DATA(iplist, i); - if (CmpIpAddr(ip, &u->ListenIP) != 0 && (!IsZeroIP(ip) || !IsZeroIP(&u->ListenIP))) + if (CmpIpAddr(ip, &u->ListenIP) != 0 && IsZeroIP(&u->ListenIP) == false) { continue; } @@ -17633,10 +17633,10 @@ void UdpListenerThread(THREAD *thread, void *param) UINT *port = LIST_DATA(u->PortList, j); bool existing = false; - /*if (IsZeroIP(ip) && (IS_SPECIAL_PORT(*port))) + if (IsZeroIP(ip) && (IS_SPECIAL_PORT(*port))) { continue; - }*/ + } for (k = 0; k < LIST_NUM(u->SockList); k++)