You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2020/11/10 12:23:50 UTC
[Bug 64913] New: IPv6 addresses in square brackets not matched
https://bz.apache.org/bugzilla/show_bug.cgi?id=64913
Bug ID: 64913
Summary: IPv6 addresses in square brackets not matched
Product: APR
Version: HEAD
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: APR
Assignee: bugs@apr.apache.org
Reporter: raemer@zit-rlp.de
Target Milestone: ---
Created attachment 37554
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37554&action=edit
patch to this issue
Hi,
trying to use ipmatch in mod_rewrite with addresses in the X-Forwarded-For
header did not work for us, as our load balancer puts the client's IPv6 address
in square brackets (i.e. '[2001:db8::1]' for client 2001:db8::1). I tracked
this down to getaddrinfo() not supporting this address format, at least in
Debian.
I extended call_resolver() as given in the patch attached and matching works
now. This also seems to fix #60317.
best regards,
Jan-Martin
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org