mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
allow Listen on ":9999" as an alias for "0.0.0.0:9999"
R=r DELTA=21 (12 added, 0 deleted, 9 changed) OCL=21653 CL=21653
This commit is contained in:
parent
4f3506b4ee
commit
33907d1346
2 changed files with 21 additions and 9 deletions
|
|
@ -79,6 +79,7 @@ export func TestTcpServer(t *testing.T) {
|
|||
DoTest(t, "tcp", "0.0.0.0:9997", "127.0.0.1:9997");
|
||||
DoTest(t, "tcp", "[::]:9997", "[::ffff:127.0.0.1]:9997");
|
||||
DoTest(t, "tcp", "[::]:9997", "127.0.0.1:9997");
|
||||
DoTest(t, "tcp", ":9997", "127.0.0.1:9997");
|
||||
DoTest(t, "tcp", "0.0.0.0:9997", "[::ffff:127.0.0.1]:9997");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue