ASF Bugzilla – Attachment 28360 Details for
Bug 52709
Apache can't bind to 127.0.0.1 if eth0 has only IPv6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for loopback support in call_resolver() IPv6/IPv4 mismatch
apr_localresolv.diff (text/plain), 714 bytes, created by
Nirgal Vourgère
on 2012-02-21 18:05:33 UTC
(
hide
)
Description:
Patch for loopback support in call_resolver() IPv6/IPv4 mismatch
Filename:
MIME Type:
Creator:
Nirgal Vourgère
Created:
2012-02-21 18:05:33 UTC
Size:
714 bytes
patch
obsolete
>--- apr-1.4.5.orig/network_io/unix/sockaddr.c >+++ apr-1.4.5/network_io/unix/sockaddr.c >@@ -356,8 +356,11 @@ > } > error = getaddrinfo(hostname, servname, &hints, &ai_list); > #ifdef HAVE_GAI_ADDRCONFIG >- if (error == EAI_BADFLAGS && family == APR_UNSPEC) { >- /* Retry with no flags if AI_ADDRCONFIG was rejected. */ >+ if (family == APR_UNSPEC >+ && (error == EAI_BADFLAGS || error == EAI_ADDRFAMILY)) { >+ /* Retry with no flags if AI_ADDRCONFIG was rejected >+ * because of BADFLAGS or unmatch IPv4/IPv6 selection >+ * when using loopback interface. See Bug #52709 */ > hints.ai_flags = 0; > error = getaddrinfo(hostname, servname, &hints, &ai_list); > }
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 52709
: 28360