mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Added untested support for mDNS addition to grid
- This allows multiple hosts to be discovered from mDNS - I don't have a GFE computer on my network, so I can't really test this...
This commit is contained in:
parent
af6caddc9f
commit
d123ee3cec
@ -554,11 +554,16 @@ function onWindowLoad(){
|
|||||||
|
|
||||||
findNvService(function (finder, opt_error) {
|
findNvService(function (finder, opt_error) {
|
||||||
if (finder.byService_['_nvstream._tcp']) {
|
if (finder.byService_['_nvstream._tcp']) {
|
||||||
var ip = Object.keys(finder.byService_['_nvstream._tcp'])[0];
|
var ips = Object.keys(finder.byService_['_nvstream._tcp']);
|
||||||
|
for (var ip in ips) {
|
||||||
if (finder.byService_['_nvstream._tcp'][ip]) {
|
if (finder.byService_['_nvstream._tcp'][ip]) {
|
||||||
$('#GFEHostIPField').val(ip);
|
var cell = document.createElement('div');
|
||||||
$('#GFEHostIPField').parent().addClass('is-dirty'); // mark it as dirty to float the textfield label
|
cell.className += 'mdl-cell mdl-cell--3-col';
|
||||||
updateHost();
|
cell.id = 'hostgrid-' + ip;
|
||||||
|
cell.innerHTML = ip;
|
||||||
|
$('#host-grid').append(cell);
|
||||||
|
cell.onclick = hostChosen;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user