mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
Fix hot reload warmup when listening on 0.0.0.0
This commit is contained in:
parent
dd3e24f933
commit
9e2214e584
1 changed files with 4 additions and 1 deletions
|
@ -37,10 +37,13 @@ public class DebugWarmupLifetime : IHostLifetime
|
||||||
{
|
{
|
||||||
using HttpClient client = new();
|
using HttpClient client = new();
|
||||||
|
|
||||||
|
string url = ServerSettings.Instance.ServerListenUrl;
|
||||||
|
url = url.Replace("0.0.0.0", "127.0.0.1");
|
||||||
|
|
||||||
Logger.Log("Warming up Hot Reload...", LoggerLevelStartup.Instance);
|
Logger.Log("Warming up Hot Reload...", LoggerLevelStartup.Instance);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
client.GetAsync(ServerSettings.Instance.ServerListenUrl).Wait();
|
client.GetAsync(url).Wait();
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue