aboutsummaryrefslogtreecommitdiff
path: root/bin/tests/test_string.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli2016-12-05 16:32:38 +0100
committerFabio Alessandrelli2017-01-04 00:46:33 +0100
commit00fdcf3cd000d0b2cf0bb1a95733ce905ca972f4 (patch)
treee6bfa1e7d1910adcab3c896ec559e24893d2c298 /bin/tests/test_string.cpp
parent7ef71b901372eaa046479b8a946d64277fd4bf0c (diff)
downloadgodot-00fdcf3cd000d0b2cf0bb1a95733ce905ca972f4.tar.gz
godot-00fdcf3cd000d0b2cf0bb1a95733ce905ca972f4.tar.zst
godot-00fdcf3cd000d0b2cf0bb1a95733ce905ca972f4.zip
IP_Address now handle IPv4 and IPv6 transparently
IP_Address changes: - Converts to and from String transparently while handling IPv4 as IPv6 mapped (::ffff:[IP]) address internally. - Completely remove AddrType enum. - Setting/Getting of ip array is now only possible through dedicated functions (ie. set_ipv4, get_ipv4, set_ipv6, get_ipv6) - Add function to know if the address is a valid IPv4 (for IP implementation and enet) (cherry picked from commit 1aff508dd9713abf0db0d0436fa7f7c4788c5a4a)
Diffstat (limited to 'bin/tests/test_string.cpp')
-rw-r--r--bin/tests/test_string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tests/test_string.cpp b/bin/tests/test_string.cpp
index 2e8f5c349..4496b9400 100644
--- a/bin/tests/test_string.cpp
+++ b/bin/tests/test_string.cpp
@@ -853,7 +853,7 @@ bool test_29() {
IP_Address ip0("2001:0db8:85a3:0000:0000:8a2e:0370:7334");
OS::get_singleton()->print("ip0 is %ls\n", String(ip0).c_str());
- IP_Address ip(0x0123, 0x4567, 0x89ab, 0xcdef, IP_Address::TYPE_IPV6);
+ IP_Address ip(0x0123, 0x4567, 0x89ab, 0xcdef, true);
OS::get_singleton()->print("ip6 is %ls\n", String(ip).c_str());
IP_Address ip2("fe80::52e5:49ff:fe93:1baf");