Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ $mandatoryChecksPassed = $true
$exit_message = "Installation cannot continue."

################################# Functions that conduct Pre-Install Checks #################################
# Function to test the network stack. Ping/GET requests to the resource to ensure that network stack looks good for installation
# Function to test the network stack. TCP Connect as well as a GET request to the resource ensures that the network stack looks good for installation
function Test-WebConnection {
param (
[string]$url
)

Write-Host "[+] Checking for Internet connectivity ($url)... (mandatory)"

if (-not (Test-Connection $url -Quiet)) {
return "It looks like you cannot ping $url. Check your network settings."
if (-not ((Test-NetConnection $url -Port 443 -ErrorAction SilentlyContinue 3>$null | Select-Object -ExpandProperty TcpTestSucceeded) -eq $True)) {
return "It looks like you cannot connect to $url. Check your network settings."
}

$response = $null
Expand Down