浏览代码

fix socks auth test

Darien Raymond 8 年之前
父节点
当前提交
9be43f4bf3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      testing/scenarios/socks_test.go

+ 1 - 1
testing/scenarios/socks_test.go

@@ -271,7 +271,7 @@ func TestSocksConformance(t *testing.T) {
 	}
 
 	{
-		authDialer, err := xproxy.SOCKS5("tcp", v2net.TCPDestination(v2net.LocalHostIP, noAuthPort).NetAddr(), &xproxy.Auth{User: "Test Account", Password: "Test Password"}, xproxy.Direct)
+		authDialer, err := xproxy.SOCKS5("tcp", v2net.TCPDestination(v2net.LocalHostIP, authPort).NetAddr(), &xproxy.Auth{User: "Test Account", Password: "Test Password"}, xproxy.Direct)
 		assert.Error(err).IsNil()
 		conn, err := authDialer.Dial("tcp", dest.NetAddr())
 		assert.Error(err).IsNil()