functions: fix resolve_gw treating IPv6 addresses as hostnames
IPv6 addresses like 2a03:5a00:c:20::122 contain hex letters (a-f),
matching the *[a-zA-Z]* hostname pattern. Check for colon first to
handle IPv6 as literal addresses.
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment