mirror of
https://github.com/aphrody-labs/apk-tools.git
synced 2026-10-13 21:26:48 +00:00
MAX_ADDRESS_STRING was 4*8+1 = 33 characters, but an IPv6 literal in full form runs to 45 characters plus the terminator. host_to_address() rejects any address that does not fit, so no_proxy CIDR entries silently failed to match a host written in full form. Use INET6_ADDRSTRLEN, which is the constant meant for this. Signed-off-by: Tobias Koch <tobias.koch@aeltra.eu>