add support for ip6 ranges

to support ip6 ranges, I limited the : split to 1 and added an elif to watch for ip6 keys.