From 700e6178dd5abc5b4f0be8cd7b67b48a585d0aaa Mon Sep 17 00:00:00 2001 From: ksw2000 <13825170+ksw2000@users.noreply.github.com> Date: Thu, 19 Dec 2024 20:43:34 +0800 Subject: [PATCH] test: change the port and the tcp6 address --- tcplisten/tcplisten_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tcplisten/tcplisten_test.go b/tcplisten/tcplisten_test.go index 6478b4d3e2..ad25c7fcea 100644 --- a/tcplisten/tcplisten_test.go +++ b/tcplisten/tcplisten_test.go @@ -41,8 +41,10 @@ func testConfig(t *testing.T, cfg Config) { if runtime.GOOS == "windows" { t.SkipNow() } - testConfigV(t, cfg, "tcp4", "localhost:10081") - testConfigV(t, cfg, "tcp6", "ip6-localhost:10081") + testConfigV(t, cfg, "tcp", "localhost:10083") + testConfigV(t, cfg, "tcp", "[::1]:10083") + testConfigV(t, cfg, "tcp4", "localhost:10083") + testConfigV(t, cfg, "tcp6", "[::1]:10083") } func testConfigV(t *testing.T, cfg Config, network, addr string) {