diff --git a/src/app/(dashboard)/dashboard/profile/page.js b/src/app/(dashboard)/dashboard/profile/page.js index 2a70e19c..685d053a 100644 --- a/src/app/(dashboard)/dashboard/profile/page.js +++ b/src/app/(dashboard)/dashboard/profile/page.js @@ -81,6 +81,12 @@ export default function ProfilePage() { const [proxyLoading, setProxyLoading] = useState(false); const [proxyTestLoading, setProxyTestLoading] = useState(false); + const [isRemoteHost, setIsRemoteHost] = useState(false); + useEffect(() => { + if (typeof window !== "undefined") + setIsRemoteHost(!["localhost", "127.0.0.1", "::1"].includes(window.location.hostname)); + }, []); + useEffect(() => { fetch("/api/settings") .then((res) => res.json()) @@ -1639,7 +1645,7 @@ export default function ProfilePage() { {/* App Info */}
{APP_CONFIG.name} v{APP_CONFIG.version}
-Local Mode - All data stored on your machine
+{isRemoteHost ? "Remote Mode" : "Local Mode - All data stored on your machine"}