Skip to content

Fix network speed test TLS, cert bypass, and status reporting#23

Merged
Pnwcomputers merged 1 commit into
mainfrom
fix/network-speed-test
Jun 20, 2026
Merged

Fix network speed test TLS, cert bypass, and status reporting#23
Pnwcomputers merged 1 commit into
mainfrom
fix/network-speed-test

Conversation

@Pnwcomputers

Copy link
Copy Markdown
Owner

Summary

Fixes three issues in Test-NetworkSpeed (SystemTester.ps1) that could cause the internet download test to fail or be mislabeled.

Changes

  • Enable TLS 1.2/1.3 before each download. PowerShell 5.1 may default to TLS 1.0/1.1, causing the HTTPS test URLs (e.g. Cloudflare) to fail silently. Protocols are now added additively with per-protocol try/catch (Tls13 throws on pre-.NET 4.8 runtimes) and the prior SecurityProtocol is restored in finally.
  • Add -SkipCertificateCheck on PowerShell 7+. On PS 7+, Invoke-WebRequest uses HttpClient, which ignores the ServicePointManager cert callback used to handle VPN/proxy TLS interception (Mullvad, Tailscale, etc.). The callback alone was a no-op there.
  • Reset $status to SUCCESS after a good download. If the earlier Get-NetAdapter query threw, $status was set to FAILED and never cleared, so a working speed test was recorded as FAILED. All four adapter/download outcome permutations now resolve correctly.

Notes

  • Net diff is +13 lines, no content deletions.
  • Line endings normalized to LF to match the rest of the repo (the working tree had drifted to CRLF across all files; only the intended change is in this PR).

🤖 Generated with Claude Code

- Enable TLS 1.2/1.3 additively before each download (per-protocol
  try/catch so it won't throw on older .NET), restored in finally.
- Add -SkipCertificateCheck on PowerShell 7+, where HttpClient ignores
  the ServicePointManager cert callback used for VPN/proxy MITM.
- Reset $status to SUCCESS on a successful download so an earlier
  Get-NetAdapter failure no longer mislabels a working test as FAILED.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
system-tester Ready Ready Preview, Comment Jun 20, 2026 4:03am

@Pnwcomputers Pnwcomputers merged commit 29be7e9 into main Jun 20, 2026
6 checks passed
@Pnwcomputers Pnwcomputers deleted the fix/network-speed-test branch June 20, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant