summaryrefslogtreecommitdiff
path: root/net/amnezia-tools/files/patch-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/amnezia-tools/files/patch-config.c')
-rw-r--r--net/amnezia-tools/files/patch-config.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/amnezia-tools/files/patch-config.c b/net/amnezia-tools/files/patch-config.c
index 68d939b8e675..0b87c28f2ac3 100644
--- a/net/amnezia-tools/files/patch-config.c
+++ b/net/amnezia-tools/files/patch-config.c
@@ -1,6 +1,6 @@
---- config.c.orig 2024-10-01 13:02:42 UTC
+--- config.c.orig 2025-09-03 14:11:13 UTC
+++ config.c
-@@ -252,7 +252,7 @@ static inline bool parse_endpoint(struct sockaddr *end
+@@ -259,7 +259,7 @@ static inline bool parse_endpoint(struct sockaddr *end
*
* So this is what we do, except FreeBSD removed EAI_NODATA some time ago, so that's conditional.
*/
@@ -9,7 +9,7 @@
#ifdef EAI_NODATA
ret == EAI_NODATA ||
#endif
-@@ -337,6 +337,20 @@ static bool validate_netmask(struct wgallowedip *allow
+@@ -344,6 +344,20 @@ static bool validate_netmask(struct wgallowedip *allow
return true;
}
@@ -30,7 +30,7 @@
static inline bool parse_allowedips(struct wgpeer *peer, struct wgallowedip **last_allowedip, const char *value)
{
struct wgallowedip *allowedip = *last_allowedip, *new_allowedip;
-@@ -353,10 +367,18 @@ static inline bool parse_allowedips(struct wgpeer *pee
+@@ -360,10 +374,18 @@ static inline bool parse_allowedips(struct wgpeer *pee
}
sep = mutable;
while ((mask = strsep(&sep, ","))) {
@@ -49,7 +49,7 @@
ip = strsep(&mask, "/");
new_allowedip = calloc(1, sizeof(*new_allowedip));
-@@ -387,6 +409,7 @@ static inline bool parse_allowedips(struct wgpeer *pee
+@@ -394,6 +416,7 @@ static inline bool parse_allowedips(struct wgpeer *pee
else
goto err;
new_allowedip->cidr = cidr;