A:调整自动
This commit is contained in:
1 parent
0981ef5d3e
commit
149b83033a
2 files changed
+7
-7
No files matched your search
@@ -103,12 +103,12 @@ public class ServerStartupManager
|
||||
|
||||
private void StartStaticFileServer()
|
||||
{
|
||||
// int port = SysHelper.GetAvailablePort();
|
||||
int port = 3000;
|
||||
int port = SysHelper.GetAvailablePort();
|
||||
// int port = 3000;
|
||||
AppConfig.Instance.HttpPort = port;
|
||||
AppConfig.Instance.HttpPath = $"http://127.0.0.1:{port}";
|
||||
|
||||
// _staticFileServer.Start(AppConfig.Instance.HttpPort);
|
||||
_staticFileServer.Start(AppConfig.Instance.HttpPort);
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
@@ -189,4 +189,4 @@ public class ServerStartupManager
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -207,14 +207,14 @@
|
||||
FontSize="12"
|
||||
FontWeight="Bold" VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
<Grid Width="80" Margin="15,0,0,0">
|
||||
<Grid Width="80" Margin="0,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Column="0" Text="↓" Foreground="Green" FontSize="12"
|
||||
FontWeight="Bold"
|
||||
VerticalAlignment="Center" Margin="0,0,6,0" />
|
||||
VerticalAlignment="Center" Margin="0,0,2,0" />
|
||||
<TextBlock Grid.Column="1" x:Name="PreviewDownloadText" Text="15.67 MB/s"
|
||||
FontSize="12"
|
||||
FontWeight="Bold" VerticalAlignment="Center" />
|
||||
@@ -357,4 +357,4 @@
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Window>
|
||||
</Window>
|
||||
Reference in new issue
Block a user