Skip to content

Commit

Permalink
Merge pull request #13 from anoymouserver/patch-3
Browse files Browse the repository at this point in the history
added secure websocket support
  • Loading branch information
HostedDinner authored Jan 25, 2020
2 parents 8eded16 + 4da50fc commit 1f2a10b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function getIPVersion(ipAddress){
}

/**
* Detmines, if the given protocol is a secure protocol (whitelist)
* Determines, if the given protocol is a secure protocol (whitelist)
*
* @param {String} protocol
* @returns {String}
Expand All @@ -152,7 +152,7 @@ function getSecureMode(protocol) {
let secureMode = SECUREMODE.UNSECURE;

if(protocol !== undefined){
if(protocol === 'https:' || protocol === 'ftps:' || protocol === 'ssh:' || protocol === 'ircs:')
if(protocol === 'https:' || protocol === 'ftps:' || protocol === 'ssh:' || protocol === 'ircs:' || protocol === 'wss:')
secureMode = SECUREMODE.SECURE;
}

Expand Down Expand Up @@ -327,4 +327,4 @@ browser.runtime.onConnect.addListener((port) => {
if(debugLog)
console.log('Page has disconnected');
});
});
});

0 comments on commit 1f2a10b

Please sign in to comment.