about summary refs log tree commit diff
path: root/src/libstd/net
diff options
context:
space:
mode:
authorCorentin Henry <corentinhenry@gmail.com>2019-04-21 19:47:54 +0200
committerCorentin Henry <corentinhenry@gmail.com>2019-04-22 16:03:39 +0200
commit99d9bb640f0ea95ae6a7346c82a61008b2363c16 (patch)
tree502e3a640c73b5d2309a3769c895e78e9bdf5d00 /src/libstd/net
parentc302d2c78f94839473a7e9be3eb4756d0f1e2508 (diff)
downloadrust-99d9bb640f0ea95ae6a7346c82a61008b2363c16.tar.gz
rust-99d9bb640f0ea95ae6a7346c82a61008b2363c16.zip
std::net: fix tests for site-local ipv6 addresses
Ipv6Addr::is_unicast_global() now returns `true` for unicast site
local addresses, since they are deprecated.
Diffstat (limited to 'src/libstd/net')
-rw-r--r--src/libstd/net/ip.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs
index cd78eb05c11..6f39575da2c 100644
--- a/src/libstd/net/ip.rs
+++ b/src/libstd/net/ip.rs
@@ -2032,7 +2032,7 @@ mod tests {
         check!("fdff:ffff::");
         check!("fe80:ffff::");
         check!("febf:ffff::");
-        check!("fec0::");
+        check!("fec0::", global);
         check!("ff01::", multicast);
         check!("ff02::", multicast);
         check!("ff03::", multicast);
@@ -2310,7 +2310,7 @@ mod tests {
 
         check!("fec0::",
                &[0xfe, 0xc0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
-               unicast_site_local);
+               unicast_site_local|unicast_global|global);
 
         check!("ff01::",
                &[0xff, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],