Replace inet_aton() with inet_pton() to parse IPs correctly (#8825) master
authorKejdi Domi <kejdi.domi@intra2net.com>
Wed, 16 Oct 2024 13:29:01 +0000 (15:29 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 17 Oct 2024 13:01:14 +0000 (15:01 +0200)
commitc816e31dfbdd463c6fbcd79f326403d993c32b50
tree2b46843a434f2f4975f2f08e98f8180dec246457
parentf22c059b4c5614f49f418c63be52f773479ab3ab
Replace inet_aton() with inet_pton() to parse IPs correctly (#8825)

inet_aton() modifies IPs in an unwanted manner (1.2 -> 1.0.0.2), so
for proper handling of IPs and for future support of IPv6 addresses,
it was changed to inet_pton() and tested accordingly.
src/ipfunc.cpp
test/ip_range.cpp