From 7cb3068b96bcab241b7f7d5d32e323a67970c7dc Mon Sep 17 00:00:00 2001 From: Cat Date: Mon, 21 Sep 2020 21:42:52 +0200 Subject: [PATCH] LSP: fix for HTTP(S).pubaddr detection --- lsp/minified.js | 10 +++++----- lsp/mist.js | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lsp/minified.js b/lsp/minified.js index bef39343..d82a2b7a 100644 --- a/lsp/minified.js +++ b/lsp/minified.js @@ -137,7 +137,7 @@ switch(b.name){case "Buffer":case "Buffer.exe":d.push({label:"RTMP full url",typ d.push({label:"RTSP",type:"span",clipboard:true,readonly:true,classes:["RTSP"]});break;case "TS":case "TS.exe":a.charAt(0)=="/"?d=[]:d.push({label:"TS",type:"span",clipboard:true,readonly:true,classes:["TS"]})}M.html(UI.buildUI(d));ma()}}}}},{label:"Stop sessions",type:"checkbox",help:"When saving these stream settings, kill this stream's current connections.",LTSonly:!0,pointer:{main:o,index:"stop_sessions"}},M,$("
"),{type:"custom",custom:ca},Ka,$("
"),$("

").text("Encryption"),{type:"help", help:"To enable encryption, the licence acquisition url must be entered, as well as either the content key or the key ID and seed.
Unsure how you should fill in your encryption or missing your preferred encryption? Please contact us."},{label:"License acquisition url",type:"str",LTSonly:!0,pointer:{main:o,index:"la_url"}},$("
"),{label:"Content key",type:"str",LTSonly:!0,pointer:{main:o,index:"contentkey"}},{type:"text",text:" - or - "},{label:"Key ID",type:"str",LTSonly:!0,pointer:{main:o, index:"keyid"}},{label:"Key seed",type:"str",LTSonly:!0,pointer:{main:o,index:"keyseed"}},{type:"buttons",buttons:[{type:"cancel",label:"Cancel","function":function(){UI.navto("Streams")}},{type:"save",label:"Save","function":function(){Ia("Streams")}},{type:"save",label:"Save and Preview","function":function(){Ia("Preview")},classes:["saveandpreview"]}]}]));c.find("[name=name]").keyup(function(){ma()});ma();break;case "Preview":""==b&&UI.navto("Streams");var N=parseURL(mist.user.host),U=N.protocol, -R=N.host,G=":8080",u=U+R+G+"/";for(r in mist.data.config.protocols)if(s=mist.data.config.protocols[r],"HTTP"==s.connector||"HTTP.exe"==s.connector){s.pubaddr&&s.pubaddr.length?u="string"==typeof s.pubaddr?s.pubaddr.replace(/\/$/,"")+"/":s.pubaddr[0].replace(/\/$/,"")+"/":(G=s.port?":"+s.port:":8080",u=U+R+G+"/");break}var Q=$("
").css({display:"flex","flex-flow":"row wrap","flex-shrink":1,"min-width":"auto"}),V="";-1==b.indexOf("+")&&(V=$("