summaryrefslogtreecommitdiff
path: root/debian/patches/a_libfdcore_endpoints.c.patch
blob: b3285ed55cd8b7d3136cc4f583ea3f3459eb01e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Debian Mobcom Maintainers
 <Debian-mobcom-maintainers@lists.alioth.debian.org>
Date: Wed, 13 Nov 2024 12:13:17 -0300
Subject: a_libfdcore_endpoints.c

---
 libfdcore/endpoints.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/libfdcore/endpoints.c b/libfdcore/endpoints.c
index e80c2a3..4c1f537 100644
--- a/libfdcore/endpoints.c
+++ b/libfdcore/endpoints.c
@@ -64,7 +64,6 @@ int fd_ep_add_merge( struct fd_list * list, sSA * sa, socklen_t sl, uint32_t fla
 		case AF_INET:
 			if (! (flags & EP_ACCEPTALL)) {
 				if (IN_IS_ADDR_UNSPECIFIED(&ptr.sin->sin_addr) 
-				 || IN_IS_ADDR_LOOPBACK(&ptr.sin->sin_addr)
 				    /* the next one filters both EXPERIMENTAL, BADCLASS and MULTICAST. */
 				 || ((ntohl(ptr.sin->sin_addr.s_addr) & 0xe0000000) == 0xe0000000)
 				 || (ptr.sin->sin_addr.s_addr == INADDR_BROADCAST)) {
@@ -78,10 +77,7 @@ int fd_ep_add_merge( struct fd_list * list, sSA * sa, socklen_t sl, uint32_t fla
 		case AF_INET6:
 			if (! (flags & EP_ACCEPTALL)) {
 				if (IN6_IS_ADDR_UNSPECIFIED(&ptr.sin6->sin6_addr) 
-				 || IN6_IS_ADDR_LOOPBACK(&ptr.sin6->sin6_addr)
-				 || IN6_IS_ADDR_MULTICAST(&ptr.sin6->sin6_addr)
-				 || IN6_IS_ADDR_LINKLOCAL(&ptr.sin6->sin6_addr)
-				 || IN6_IS_ADDR_SITELOCAL(&ptr.sin6->sin6_addr)) {
+				 || IN6_IS_ADDR_MULTICAST(&ptr.sin6->sin6_addr)) {
 					LOG_A("  DEBUG:fd_ep_add_merge  Address was ignored, not added.");
 					return 0;
 				}