Fixed router links in my devices page, #3659

Ylian Saint-Hilaire committed Feb 15, 2022 at 16:42 UTC f68a6ce9a8085deed494ad3c7582674b4cb14315
1 file changed +1 -1
views/default.handlebars
+1 -1
@@ -4486,7 +4486,7 @@
4486 var r = serverinfo.devicemeshrouterlinks.extralinks[i], p = 0;
4487 if (doesDeviceMatchFilterTags(node, r.filter)) {
4488 if (typeof r.protocol == 'number') { p = r.protocol; } else if (r.protocol == 'http') { p = 1; } else if (r.protocol == 'https') { p = 2; } else if (r.protocol == 'rdp') { p = 3; } else if (r.protocol == 'ssh') { p = 4; } else if (r.protocol == 'scp') { p = 5; } else if (r.protocol == 'mcrdesktop') { p = 6; } else if (r.protocol == 'mcrfiles') { p = 7; }
4489 - x += '<a href=# onclick=p10MCRouter("' + node._id + '",' + p + ',' + r.port + (r.ip?(',\"' + r.ip + '\"'):'') + ')>' + r.name + '</a>&nbsp;';
4489 + x += '<a href=# onclick=p10MCRouter("' + node._id + '",' + p + ',' + r.port + (r.ip?(',\"' + r.ip + '\"'):',null') + ',' + (r.localport?r.localport:0) + ')>' + r.name + '</a>&nbsp;';
4490 }
4491 }
4492 }