From 1d8bc1c40aa46c5d8ee5ad765105a48937915c05 Mon Sep 17 00:00:00 2001 From: Konrad Dzwinel Date: Tue, 24 Sep 2024 22:25:18 +0200 Subject: [PATCH] Add support for wss in port scanning (#232) --- privacy-protections/local-port-scan/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/privacy-protections/local-port-scan/index.html b/privacy-protections/local-port-scan/index.html index 8123dac..bc7186d 100644 --- a/privacy-protections/local-port-scan/index.html +++ b/privacy-protections/local-port-scan/index.html @@ -50,7 +50,7 @@ const timeout = Number.parseInt(document.getElementById('timeout').value, 10); for (const port of commonPorts) { - const url = `ws://localhost:${port}/`; + const url = `ws${protocol === 'http:' ? '' : 's'}://localhost:${port}/`; const startTime = Date.now(); try { let res;