mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-25 05:25:39 +02:00
Fixes #2612
This commit is contained in:
@@ -8,6 +8,8 @@ import ExitNodesTable, {
|
|||||||
import SettingsSectionTitle from "@app/components/SettingsSectionTitle";
|
import SettingsSectionTitle from "@app/components/SettingsSectionTitle";
|
||||||
import { getTranslations } from "next-intl/server";
|
import { getTranslations } from "next-intl/server";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
import { build } from "@server/build";
|
||||||
|
import { redirect } from "next/navigation";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Remote Exit Nodes"
|
title: "Remote Exit Nodes"
|
||||||
@@ -22,6 +24,10 @@ export const dynamic = "force-dynamic";
|
|||||||
export default async function RemoteExitNodesPage(
|
export default async function RemoteExitNodesPage(
|
||||||
props: RemoteExitNodesPageProps
|
props: RemoteExitNodesPageProps
|
||||||
) {
|
) {
|
||||||
|
if (build != "saas") {
|
||||||
|
redirect("/");
|
||||||
|
}
|
||||||
|
|
||||||
const params = await props.params;
|
const params = await props.params;
|
||||||
let remoteExitNodes: ListRemoteExitNodesResponse["remoteExitNodes"] = [];
|
let remoteExitNodes: ListRemoteExitNodesResponse["remoteExitNodes"] = [];
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user