add secure socket as default transport and set the default port based on 'X-Forward...
[brisk.git] / web / xynt-streaming.js
index 3db25a1..47059a4 100644 (file)
@@ -634,7 +634,7 @@ xynt_streaming.prototype = {
         // DEFAULT TRANSPORT PROTOCOL HERE websocketsec, websocket
         if (this.transp_fback > 0) {
             transp_type = "websocketsec";
-            transp_port = (this.transp_fback == 2 ? 80 : 8080);
+            transp_port = (this.transp_fback == 2 ? 443 : 8080);
         }
         else {
             transp_type = this.transp_type;