Skip to content

Commit 99d9bb6

Browse files
committed
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.
1 parent c302d2c commit 99d9bb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/net/ip.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,7 @@ mod tests {
20322032
check!("fdff:ffff::");
20332033
check!("fe80:ffff::");
20342034
check!("febf:ffff::");
2035-
check!("fec0::");
2035+
check!("fec0::", global);
20362036
check!("ff01::", multicast);
20372037
check!("ff02::", multicast);
20382038
check!("ff03::", multicast);
@@ -2310,7 +2310,7 @@ mod tests {
23102310

23112311
check!("fec0::",
23122312
&[0xfe, 0xc0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
2313-
unicast_site_local);
2313+
unicast_site_local|unicast_global|global);
23142314

23152315
check!("ff01::",
23162316
&[0xff, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],

0 commit comments

Comments
 (0)