Fixes colon and ipv6 bugs.

Been running this for a couple of days with no problems, happy with it. Hopefully ready to be merged.