Oh I forgot that it truncates the last part of ipv6... added test cases