mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
net: allow for a ::ffff:127.0.0.1
result in tcp_simple_client_server_test.v (#22385)
This commit is contained in:
parent
8d1ba46875
commit
d1606b22b7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue