add ip v6 length check.
Merge pull request #458 from forumbyr/master

add ip v6 length check.