Respect server.ipv6_enabled when binding to localhost

closes #493