From 0490f49f85d3318c735b665f7cf1b1645fa17d1a Mon Sep 17 00:00:00 2001
From: Robert Syrnicki
Date: Wed, 7 Oct 2026 15:13:39 +0200
Subject: [PATCH] fix: don't show gateway as disconnected when the session
expired
Sessions are in-memory, so a furtka-api restart logs the user out and
/api/gateway/status returns 401. The settings page ignored that and kept
its default "not connected" panel visible. Both panels now start hidden
and a 401 redirects to /login.
Co-Authored-By: Claude Opus 5.5
---
assets/www/settings/index.html | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/assets/www/settings/index.html b/assets/www/settings/index.html
index f3727ad..0184196 100644
--- a/assets/www/settings/index.html
+++ b/assets/www/settings/index.html
@@ -89,7 +89,7 @@
publish one from the Apps page — connecting here only
opens the tunnel, nothing is exposed automatically.
-