Skip to content

Commit

Permalink
Merge pull request #1 from sstrang/bugfix/fix-unsecure-connection-at-…
Browse files Browse the repository at this point in the history
…startup

There's probably some better place to do this, but this check prevent…
  • Loading branch information
sstrang committed Nov 11, 2015
2 parents 4ed1fe2 + 6bd26c7 commit a346cd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ function getServerAddresses(requests_url, plex_token, callback) {
for (var j = 0; j < connections.length; j++) {
var connection = connections[j];
var uri = connection.hasAttribute("uri") ? connection.getAttribute("uri") : window.location.protocol + "//" + connection.getAttribute("address") + ":" + connection.getAttribute("port");
if (uri.indexOf("https") < 0) {
continue;
}
var local = !connection.hasAttribute("uri") || connection.getAttribute("local") == 1;
task_counter += 1;
(function (machine_identifier, name, uri, access_token, local) {
Expand Down

0 comments on commit a346cd9

Please sign in to comment.