fixed error involving AF_INET6

changed line 1907 to an actual inet_pton
changed line 1750 the same way