[CHANGE] check family on addr first;
[CHANGE] rubocop compliance;
Merge pull request #98 from Bigpoint/fix-ipv6

[CHANGE] check family on addr first;