|
|
@ -136,9 +136,17 @@ public class HomeController : Controller |
|
|
|
/// <summary>
|
|
|
|
/// 测试客户端配置页面
|
|
|
|
/// </summary>
|
|
|
|
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; |
|
|
|