SSH endpoint

This commit is contained in:
2026-09-10 13:13:08 -03:00
parent 9e2bb4ceeb
commit 162a9dc2d9
10 changed files with 199 additions and 19 deletions
+2
View File
@@ -100,6 +100,7 @@ async function loadServerConfig() {
// Network
document.getElementById("cfgListen").value = c.listen || "";
document.getElementById("cfgLocalSSHListen").value = c.local_ssh_listen || "127.0.0.1:2222";
document.getElementById("cfgExtraListen").value = (c.extra_listen || []).join("\n");
document.getElementById("cfgProxyAutoRestart").value = c.proxy_auto_restart_interval || "";
document.getElementById("cfgProxyRestartGrace").value = c.proxy_auto_restart_grace || "";
@@ -185,6 +186,7 @@ async function saveServerConfig() {
const cfg = {
listen: document.getElementById("cfgListen").value.trim(),
local_ssh_listen: document.getElementById("cfgLocalSSHListen").value.trim() || "127.0.0.1:2222",
extra_listen: extraLines,
proxy_auto_restart_interval: document.getElementById("cfgProxyAutoRestart").value.trim(),
proxy_auto_restart_grace: document.getElementById("cfgProxyRestartGrace").value.trim(),