mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
save correct daemon port on port change
This commit is contained in:
parent
00e924602d
commit
3044c7ee54
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
|
|
||||||
document.getElementById("tnc_port").addEventListener("change", () => {
|
document.getElementById("tnc_port").addEventListener("change", () => {
|
||||||
config.tnc_port = document.getElementById("tnc_port").value
|
config.tnc_port = document.getElementById("tnc_port").value
|
||||||
config.daemon_port = document.getElementById("tnc_port").value + 1
|
config.daemon_port = parseInt(document.getElementById("tnc_port").value) + 1
|
||||||
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue