Godot v4.4.dev (0c45ace15) - Windows 10.0.18363 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (NVIDIA; 32.0.15.6614) - Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 threads)
Issue description
The is_valid_ip_address() method has inconsistent behavior when validating IPv6 addresses with multiple occurrences of ::. According to the IPv6 standard, :: can only appear once in an address to represent consecutive zero segments, but currently, for example, the method incorrectly validates addresses like 2001:db8:::1 and 2001::1::1 as valid. These padding styles should not be possible.
Down below are some test cases that shows that the methods returns true when we expect false
Tested versions
4.4 dev
System information
Godot v4.4.dev (0c45ace15) - Windows 10.0.18363 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (NVIDIA; 32.0.15.6614) - Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 threads)
Issue description
The
is_valid_ip_address()
method has inconsistent behavior when validating IPv6 addresses with multiple occurrences of::
. According to the IPv6 standard,::
can only appear once in an address to represent consecutive zero segments, but currently, for example, the method incorrectly validates addresses like2001:db8:::1
and2001::1::1
as valid. These padding styles should not be possible.Down below are some test cases that shows that the methods returns
true
when we expectfalse
Steps to reproduce
Minimal reproduction project (MRP)
N/A