FreeBSD Bugzilla – Attachment 242197 Details for
Bug 271335
www/lighttpd: fix listening on IPv6 and IPv4 addresses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
www/lighttpd: fix listening on IPv6 addresses v2
0001-fix-listening-on-IPv6-and-IPv4-addresses-v2.patch (text/plain), 1.49 KB, created by
R. Christian McDonald
on 2023-05-15 15:56:15 UTC
(
hide
)
Description:
www/lighttpd: fix listening on IPv6 addresses v2
Filename:
MIME Type:
Creator:
R. Christian McDonald
Created:
2023-05-15 15:56:15 UTC
Size:
1.49 KB
patch
obsolete
>From 418d4e252d504833990748757b328cf80211b904 Mon Sep 17 00:00:00 2001 >From: "R. Christian McDonald" <rcm@rcm.sh> >Date: Mon, 15 May 2023 11:45:26 -0400 >Subject: [PATCH] fix listening on IPv6 and IPv4 addresses v2 > >--- > www/lighttpd/Makefile | 1 + > www/lighttpd/files/patch-src_sock__addr.c | 11 +++++++++++ > 2 files changed, 12 insertions(+) > create mode 100644 www/lighttpd/files/patch-src_sock__addr.c > >diff --git a/www/lighttpd/Makefile b/www/lighttpd/Makefile >index 94f4aac98136..1d6e9701314a 100644 >--- a/www/lighttpd/Makefile >+++ b/www/lighttpd/Makefile >@@ -1,5 +1,6 @@ > PORTNAME?= lighttpd > PORTVERSION= 1.4.70 >+PORTREVISION= 1 > CATEGORIES?= www > MASTER_SITES?= https://download.lighttpd.net/lighttpd/releases-1.4.x/ > >diff --git a/www/lighttpd/files/patch-src_sock__addr.c b/www/lighttpd/files/patch-src_sock__addr.c >new file mode 100644 >index 000000000000..9917b52a0ef2 >--- /dev/null >+++ b/www/lighttpd/files/patch-src_sock__addr.c >@@ -0,0 +1,11 @@ >+--- src/sock_addr.c.orig 2023-05-15 15:41:44 UTC >++++ src/sock_addr.c >+@@ -496,7 +496,7 @@ int sock_addr_from_str_hints(sock_addr * const restric >+ if (0 != (rc = getaddrinfo(str, NULL, &hints, &res))) { >+ hints.ai_family = AF_INET; >+ if ( >+- #ifdef EAI_ADDRFAMILY >++ #if defined(__GLIBC__) && defined(EAI_ADDRFAMILY) >+ EAI_ADDRFAMILY == rc && >+ #endif >+ 0 == getaddrinfo(str, NULL, &hints, &res)) { >-- >2.40.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 271335
:
242082
| 242197