Enable ipv6 support

Each port can be opened only once, if opened in ipv6 mode it will work automatically in ipv4 too. I tested this on my ipv6 enabled box, obviously it needs testing on an ipv4-only box before accepting.