1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 19:51:34 +01:00

Added is_private and is_loopback methods to IPv4 and IPv6 addresses.

This commit is contained in:
Matias Fontanini
2013-09-04 12:57:36 -03:00
parent b26f353e46
commit 15f2896811
7 changed files with 161 additions and 67 deletions

View File

@@ -81,7 +81,7 @@ TEST_F(UtilsTest, ResolveDomain) {
}
TEST_F(UtilsTest, ResolveDomain6) {
IPv6Address localhost_ip("2001:500:88:200::10");
IPv6Address localhost_ip("2606:2800:220:6d:26bf:1447:1097:aa7");
EXPECT_EQ(Utils::resolve_domain6("example.com"), localhost_ip);
}