mirror of
https://github.com/beefproject/beef
synced 2026-06-08 13:15:56 +00:00
5d73d7f084
Changed regex in #is_valid_ip? to be more strict since it previously would have matched an invalid IP such as 999.999.999.999. Changed its name to #is_valid_ipv4?. Added new #is_valid_ipv6? method that validates IPv6 addresses. It is very comprehensive and will match normal IPv6 addresses, zero compressed, link-local with zone index, and IPv6 addresses that have IPv4 embedded, mapped, and translated. Added new #is_valid_domain? method that validates domain names.