Use IPAddr class to validate ip formats
And another 1.9.3 compatibility fix
Merge pull request #143 from RST-J/fix_ip_formats

Use IPAddr class to validate ip formats