Skip to content

Commit 394fb27

Browse files
committed
Rename to ipv4_mapped_ipv6
1 parent 02025d4 commit 394fb27

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/rust/wasm32-wasip3/src/bin/sockets-tcp-connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async fn test_non_unicast(family: IpAddressFamily) {
5252

5353
async fn test_reject_dual_stack() {
5454
let sock = TcpSocket::create(IpAddressFamily::Ipv6).unwrap();
55-
let addr = IpSocketAddress::ipv6_mapped_localhost(PORT);
55+
let addr = IpSocketAddress::ipv4_mapped_ipv6_localhost(PORT);
5656
let result = sock.connect(addr).await;
5757

5858
assert!(matches!(result, Err(ErrorCode::InvalidArgument)));

tests/rust/wasm32-wasip3/src/sockets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl IpSocketAddress {
3434
})
3535
}
3636

37-
pub fn ipv6_mapped_localhost(port: u16) -> IpSocketAddress {
37+
pub fn ipv4_mapped_ipv6_localhost(port: u16) -> IpSocketAddress {
3838
IpSocketAddress::Ipv6(Ipv6SocketAddress {
3939
port,
4040
address: (0, 0, 0, 0, 0, 0xFFFF, 0x7F00, 0x0001),

0 commit comments

Comments
 (0)