You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jp...@yahoo.com on 2007/03/31 00:06:55 UTC

question about valves reporting inet6 addresses

Sorry for bothering the list with this, but the usual searches have  
turned up nothing.

First, my profile:

Mac OS X 10.4.9
Tomcat 6.0.10 running with APR 1.2.8
Java 1.5.0

OK, I configured a context with a RemoteHostValve to restrict access  
to a particular subnet.  However, I could not get the valve to work.   
I also tried a RemoteAddrValve, but had similar problems.  I have  
used them both in the past (on linux) without problems.

I eventually attached with the debugger and found that for *both*  
valve classes, the "remote address" passed from invoke() to process()  
was:

	0:0:0:0:0:0:0:1%0

Which looks suspiciously like an inet6 address.  No wonder my valves  
were not working; when using the address valve, I was expecting a 4  
octet address, and when using the hostname valve, no attempt was  
being made to resolve the remote hostname at all.

BTW, disabling APR makes no difference to this behavior.

Any pointers to how I can return to the Inet4 world?

Thanks

Jules

p.s. I just turned on an access log valve and got the same thing  
(inet6 address in first column):

::1 - - [30/Mar/2007:14:24:16 -0700] "GET /docs/cluster-howto.html  
HTTP/1.1" 200 62792 "http://localhost:8080/docs/jndi-d
atasource-examples-howto.html" "Mozilla/5.0 (Macintosh; U; PPC Mac OS  
X; en) AppleWebKit/419 (KHTML, like Gecko) Safari/4
19.3"


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org