From 1fb9b38710bf3ad09b48f34ee3f01f2df237a6ab Mon Sep 17 00:00:00 2001 From: Pacific Northwest Computers <142192730+Pnwcomputers@users.noreply.github.com> Date: Fri, 31 Oct 2025 12:06:46 -0700 Subject: [PATCH] Fix host:port string interpolation in latency test --- SystemTester.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SystemTester.ps1 b/SystemTester.ps1 index 19b9ebe..d2a0fc2 100644 --- a/SystemTester.ps1 +++ b/SystemTester.ps1 @@ -588,7 +588,7 @@ function Test-NetworkLatency { $targetHost = "8.8.8.8" $targetPort = 443 - $lines = @("Target: $targetHost:$targetPort") + $lines = @("Target: $($targetHost):$targetPort") $status = "SUCCESS" # Built-in Test-NetConnection results @@ -611,7 +611,7 @@ function Test-NetworkLatency { try { $pspingPath = Join-Path $SysinternalsPath "psping.exe" if (Test-Path $pspingPath) { - $args = @("-accepteula", "-n", "5", "$targetHost:$targetPort") + $args = @("-accepteula", "-n", "5", "{0}:{1}" -f $targetHost, $targetPort) Write-Host "Running PsPing latency test..." -ForegroundColor Yellow $pspingOutput = & $pspingPath $args 2>&1 | Out-String $lines += "PsPing Summary:"