parent
6324a60f96
commit
aff33efcb0
|
@ -60,7 +60,7 @@ function Test-Network {
|
||||||
Write-Log "Checking internet connection..." "Yellow"
|
Write-Log "Checking internet connection..." "Yellow"
|
||||||
while (!$ping -and $timeout -lt 1800){
|
while (!$ping -and $timeout -lt 1800){
|
||||||
try{
|
try{
|
||||||
Invoke-RestMethod -Uri 'https://en.wikipedia.org/api/rest_v1/'
|
Invoke-RestMethod -Uri "https://ifconfig.me/"
|
||||||
Write-Log "Coonected !" "Green"
|
Write-Log "Coonected !" "Green"
|
||||||
$ping = $true
|
$ping = $true
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue