Open MarcusPaulsson opened 1 day ago
This seems like a good opportunity to bring your test suite into the unit tests of the engine: https://github.com/godotengine/godot/blob/0c45ace151f25de2ca54fe7a46b6f077be32ba6f/tests/core/string/test_string.h
Should likely be done as a separate PR after this one.
Proposal to Fix Inconsistent Behavior in is_valid_ip_address() for IPv6 Addresses with Multiple :: Fixes: #99623
This pull request resolves inconsistent behavior in the is_valid_ip_address() method when validating IPv6 addresses. Specifically, it addresses the following issues:
Old behavior:
New behavior:
The updated is_valid_ip_address() method tracks :: with double_colon_index, ensuring only one occurrence. It validates segment counts, handles compressed zeros logically, and strictly enforces IPv4-mapped segments in the final position.