This commit is contained in:
unknown
2025-11-14 13:43:56 -08:00
parent 478d978920
commit ec5068e31c
5 changed files with 100 additions and 28 deletions

View File

@@ -1,17 +1,19 @@
param(
[string]$HostName = "127.0.0.1",
[int]$Port = 7860,
[int]$Timeout = 60
[int]$Timeout = 90
)
for ($i = 1; $i -le $Timeout; $i++) {
try {
$tcp = [System.Net.Sockets.TcpClient]::new()
$tcp.Connect($HostName, $Port)
$tcp.Close()
Start-Process "http://${HostName}:$Port/"
break
exit 0
}
catch {
Start-Sleep -Seconds 1
}
}
}
exit 0