Skip to content

Commit

Permalink
Add support for wss in port scanning (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdzwinel authored Sep 24, 2024
1 parent b875490 commit 1d8bc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion privacy-protections/local-port-scan/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1d8bc1c

Please sign in to comment.