ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
Treat a missing email extension as no relay
Juan Denis73741eb1977d
diff --git a/frontend/src/components/settings/connections/ConnectionsHub.jsx b/frontend/src/components/settings/connections/ConnectionsHub.jsxindex ecf52937..95582db4 100644--- a/frontend/src/components/settings/connections/ConnectionsHub.jsx+++ b/frontend/src/components/settings/connections/ConnectionsHub.jsx@@ -82,7 +82,12 @@ export default function ConnectionsHub() {soft('dns', api.getEmailDNSProviders().then((d) => d.providers || []), []),soft('cloud', api.getCloudProviders().then((d) => d.providers || []), []),soft('storage', api.getStorageConfig(), null),- soft('email', api.getEmailRelay(), null),+ // The relay endpoint belongs to the Email extension: a 404 means+ // it isn't installed (no relay), not that the read failed.+ soft('email', api.getEmailRelay().catch((err) => {+ if (err?.status === 404) return null;+ throw err;+ }), null),soft('registrar', api.getRegistrarConnections().then((d) => d.connections || []), []),soft('registrarDomains', api.getRegistrarDomains().then((d) => d.domains || []), []),soft('registry', api.getContainerRegistries().then((d) => d.registries || []), []),