Browse Source

Support connections over HTTPS via proxy (#937)

fastled^2
Xose Pérez 6 years ago
parent
commit
b7915c3643
3 changed files with 536 additions and 530 deletions
  1. BIN
      code/espurna/data/index.html.gz
  2. +530
    -529
      code/espurna/static/index.html.gz.h
  3. +6
    -1
      code/html/custom.js

BIN
code/espurna/data/index.html.gz View File


+ 530
- 529
code/espurna/static/index.html.gz.h
File diff suppressed because it is too large
View File


+ 6
- 1
code/html/custom.js View File

@ -1357,9 +1357,14 @@ function initUrls(root) {
urls["root"] = root; urls["root"] = root;
paths.forEach(function(path) { paths.forEach(function(path) {
urls[path] = new URL(path, root); urls[path] = new URL(path, root);
urls[path].protocol = root.protocol;
}); });
urls.ws.protocol = "ws";
if (root.protocol == "https:") {
urls.ws.protocol = "wss:";
} else {
urls.ws.protocol = "ws:";
}
} }


Loading…
Cancel
Save