mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-07 22:59:14 +08:00
Optimize server address input
This commit is contained in:
parent
6430000aad
commit
79d4b266b8
@ -1737,6 +1737,8 @@ namespace GrasscutterTools.Forms
|
||||
/// <param name="host">主机地址</param>
|
||||
private async Task UpdateServerStatus(string host)
|
||||
{
|
||||
// "http://127.0.0.1/" -> "http://127.0.0.1"
|
||||
host = host.TrimEnd('/');
|
||||
var status = await DispatchServerAPI.QueryServerStatus(host);
|
||||
LblServerVersion.Text = status.Version;
|
||||
if (status.MaxPlayer >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user