Fixes issue with Tomcat configuration on ipv6 enabled servers