1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-10 03:30:39 +03:00

Merge PR #1426: Mayaqua/Network.c: Create UDP listener for every interface if ListenIP is wildcard

This commit is contained in:
Davide Beatrici 2021-07-11 21:35:01 +02:00 committed by GitHub
commit 26a27553b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17620,7 +17620,7 @@ void UdpListenerThread(THREAD *thread, void *param)
{ {
IP *ip = LIST_DATA(iplist, i); 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; continue;
} }
@ -17633,10 +17633,10 @@ void UdpListenerThread(THREAD *thread, void *param)
UINT *port = LIST_DATA(u->PortList, j); UINT *port = LIST_DATA(u->PortList, j);
bool existing = false; bool existing = false;
/*if (IsZeroIP(ip) && (IS_SPECIAL_PORT(*port))) if (IsZeroIP(ip) && (IS_SPECIAL_PORT(*port)))
{ {
continue; continue;
}*/ }
for (k = 0; k < LIST_NUM(u->SockList); k++) for (k = 0; k < LIST_NUM(u->SockList); k++)