save correct daemon port on port change

This commit is contained in:
DJ2LS 2021-08-11 21:07:41 +02:00 committed by GitHub
parent 00e924602d
commit 3044c7ee54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,7 @@ window.addEventListener('DOMContentLoaded', () => {
document.getElementById("tnc_port").addEventListener("change", () => {
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));
});