Merge PR #1306: Mayaqua: Fix UDP send error when used with reverse proxy

This commit is contained in:
Davide Beatrici authored and GitHub committed 2021-03-23 19:46:11 +01:00
commit 3761876254
1 file changed
+1 -1
+1 -1
View File
@@ -11226,7 +11226,7 @@ UINT SendToEx(SOCK *sock, IP *dest_addr, UINT dest_port, void *data, UINT size,
Debug("SendTo Error; %u\n", e);
}
#else // OS_WIN32
if (errno == ECONNREFUSED || errno == ECONNRESET || errno == EMSGSIZE || errno == ENOBUFS || errno == ENOMEM || errno == EINTR)
if (errno == ECONNREFUSED || errno == ECONNRESET || errno == EMSGSIZE || errno == ENOBUFS || errno == ENOMEM || errno == EINTR || errno == EINVAL)
{
sock->IgnoreSendErr = true;
}