net: allow for a ::ffff:127.0.0.1 result in tcp_simple_client_server_test.v (#22385)

This commit is contained in:
Carlos Esquerdo Bernat 2024-10-02 16:31:01 +02:00 committed by GitHub
parent 8d1ba46875
commit d1606b22b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ fn test_socket_write_and_read() {
mut server, mut client, mut socket := setup() mut server, mut client, mut socket := setup()
addr := socket.peer_addr()! addr := socket.peer_addr()!
ip := socket.peer_ip()! ip := socket.peer_ip()!
assert ip in ['::1', 'localhost', '127.0.0.1'] assert ip in ['::1', 'localhost', '127.0.0.1', '::ffff:127.0.0.1']
println('> ip: ${ip} | addr: ${addr}') println('> ip: ${ip} | addr: ${addr}')
defer { defer {
cleanup(mut server, mut client, mut socket) cleanup(mut server, mut client, mut socket)