Skip to content

Commit 5171a63

Browse files
thoronwenThulinma
authored andcommitted
LSP: livestreamhint: bugfix for tsudp://
1 parent 80074ed commit 5171a63

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lsp/minified.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lsp/mist.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,13 +1504,14 @@ context_menu: function(){
15041504
if ((source.charAt(0) == "/") || (source.slice(0,7) == "ts-exec")) {
15051505
return; //do not return section
15061506
}
1507-
for (const port of ports["TS"]) {
1508-
let out = 'udp://'+(ip == '' ? host.host : ip)+port+'/';
1507+
if (source.slice(0,8) == "tsudp://") {
1508+
let out = 'udp://'+(ip == '' ? host.host : ip)+(custport ? custport : ":[port]")+'/';
15091509
values.push(out);
15101510
$values.append(
15111511
createSpan(out)
15121512
);
15131513
}
1514+
else { return; }
15141515
break;
15151516
}
15161517
}

0 commit comments

Comments
 (0)