chore: prefer net.isIPv4
over custom function
#443
Merged
net.isIPv4
over custom function
#443