ofalk / libdnet

libdnet provides a simplified, portable interface to several low-level networking routines.
Other
153 stars 60 forks source link

Don't try to convert hostnames to addresses in addr_pton() #61

Closed dwmcrobb closed 3 years ago

dwmcrobb commented 3 years ago

addr_pton() should only work on address strings and not call the resolver. Especially in a dual-stack world where AAAA and A records for the same hostname are very common.

dwmcrobb commented 3 years ago

Oops, very sorry about the README. Long-time git user but new github user and didn't know what do do with the README and didn't want to make it look like I just stole everything! I'll revert it.

dwmcrobb commented 3 years ago

Reverted the README.md on the master branch I had created as well as the addr_pton-no-gethostbyname branch.