diff --git a/LTEMvcApp/Controllers/HomeController.cs b/LTEMvcApp/Controllers/HomeController.cs index 627a357..2d826cc 100644 --- a/LTEMvcApp/Controllers/HomeController.cs +++ b/LTEMvcApp/Controllers/HomeController.cs @@ -136,9 +136,17 @@ public class HomeController : Controller /// /// 测试客户端配置页面 /// - public IActionResult TestClientConfig() + public IActionResult TestClientConfig(string address = null) { - var testConfig = _webSocketManager.GetDefaultTestClientConfig(); + ClientConfig testConfig; + if (!string.IsNullOrEmpty(address)) + { + testConfig = _webSocketManager.GetTestClientConfigByAddress(address); + } + else + { + testConfig = _webSocketManager.GetDefaultTestClientConfig(); + } var allTestConfigs = _webSocketManager.GetAllTestClientConfigs(); ViewBag.TestConfig = testConfig;