mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
set sane defaults for the hidden SSDP and UDP config values
This commit is contained in:
parent
38f486339f
commit
41d2b104d5
1 changed files with 6 additions and 6 deletions
|
@ -67,10 +67,10 @@ import alert from '../../components/alert';
|
||||||
config.EnableIPV6 = form.querySelector('#chkEnableIP6').checked;
|
config.EnableIPV6 = form.querySelector('#chkEnableIP6').checked;
|
||||||
config.EnableIPV4 = form.querySelector('#chkEnableIP4').checked;
|
config.EnableIPV4 = form.querySelector('#chkEnableIP4').checked;
|
||||||
config.UPnPCreateHttpPortMap = form.querySelector('#chkCreateHttpPortMap').checked;
|
config.UPnPCreateHttpPortMap = form.querySelector('#chkCreateHttpPortMap').checked;
|
||||||
config.UDPPortRange = form.querySelector('#txtUDPPortRange').value || null;
|
config.UDPPortRange = form.querySelector('#txtUDPPortRange').value;
|
||||||
config.HDHomerunPortRange = form.querySelector('#txtHDHomerunPortRange').checked || null;
|
config.HDHomerunPortRange = form.querySelector('#txtHDHomerunPortRange').value;
|
||||||
config.EnableSSDPTracing = form.querySelector('#chkEnableSSDPTracing').checked;
|
config.EnableSSDPTracing = form.querySelector('#chkEnableSSDPTracing').checked;
|
||||||
config.SSDPTracingFilter = form.querySelector('#txtSSDPTracingFilter').value || null;
|
config.SSDPTracingFilter = form.querySelector('#txtSSDPTracingFilter').value;
|
||||||
ApiClient.updateNamedConfiguration('network', config).then(Dashboard.processServerConfigurationUpdateResult, Dashboard.processErrorResponse);
|
ApiClient.updateNamedConfiguration('network', config).then(Dashboard.processServerConfigurationUpdateResult, Dashboard.processErrorResponse);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -157,10 +157,10 @@ import alert from '../../components/alert';
|
||||||
page.querySelector('#chkEnableIP6').checked = config.EnableIPV6;
|
page.querySelector('#chkEnableIP6').checked = config.EnableIPV6;
|
||||||
page.querySelector('#chkEnableIP4').checked = config.EnableIPV4;
|
page.querySelector('#chkEnableIP4').checked = config.EnableIPV4;
|
||||||
page.querySelector('#chkCreateHttpPortMap').checked = config.UPnPCreateHttpPortMap;
|
page.querySelector('#chkCreateHttpPortMap').checked = config.UPnPCreateHttpPortMap;
|
||||||
page.querySelector('#txtUDPPortRange').value = config.UDPPortRange;
|
page.querySelector('#txtUDPPortRange').value = config.UDPPortRange || '';
|
||||||
page.querySelector('#txtHDHomerunPortRange').checked = config.HDHomerunPortRange;
|
page.querySelector('#txtHDHomerunPortRange').checked = config.HDHomerunPortRange || '';
|
||||||
page.querySelector('#chkEnableSSDPTracing').checked = config.EnableSSDPTracing;
|
page.querySelector('#chkEnableSSDPTracing').checked = config.EnableSSDPTracing;
|
||||||
page.querySelector('#txtSSDPTracingFilter').value = config.SSDPTracingFilter;
|
page.querySelector('#txtSSDPTracingFilter').value = config.SSDPTracingFilter || '';
|
||||||
page.querySelector('#txtPublishedServer').value = (config.PublishedServerUriBySubnet || []).join(', ');
|
page.querySelector('#txtPublishedServer').value = (config.PublishedServerUriBySubnet || []).join(', ');
|
||||||
loading.hide();
|
loading.hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue