add ipv6 support

(changed to support runtime disable + integration by andy@warmcat.com)