formtools / core

The Form Tools Core.
https://formtools.org
207 stars 78 forks source link

[#834] Increase IP address size for IPv6 #837

Closed tvdhout closed 1 year ago

tvdhout commented 2 years ago

Fixes issue #834

mdavids commented 2 years ago

It may be worth to set the length to 45 (grep INET6_ADDRSTRLEN /usr/include/arpa/inet.h shows 46, but that is including a terminating '\0'), to also cover the rare cases of IPv6 mapped IPv4 notation (0000:0000:0000:0000:0000:0000:123.123.123.123).