mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-04 13:27:46 +00:00
add device config to disable changing local port
This commit is contained in:
@@ -8,6 +8,7 @@ exports.config = {
|
||||
remotePort: 53000,
|
||||
localPort: 53001,
|
||||
mayChangePorts: true,
|
||||
mayChangeLocalPort: false,
|
||||
heartbeatInterval: 100,
|
||||
heartbeatTimeout: 5000,
|
||||
searchOptions: {
|
||||
|
||||
@@ -184,6 +184,12 @@ function switchDevice(id) {
|
||||
document.getElementById('device-settings-rx-port').disabled = true;
|
||||
}
|
||||
|
||||
if (activeDevice.plugin.config.mayChangeLocalPort === false) {
|
||||
document.getElementById('device-settings-rx-port').disabled = true;
|
||||
} else {
|
||||
document.getElementById('device-settings-rx-port').disabled = false;
|
||||
}
|
||||
|
||||
if (activeDevice.plugin.config.localPort) {
|
||||
// document.getElementById('device-settings-port-label').textContent = 'Remote\nPort:';
|
||||
document.getElementById('device-settings-rx-port-row').style.display = 'table-row';
|
||||
|
||||
Reference in New Issue
Block a user