mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-15 01:16:38 +00:00
disable local and wg sites with flag
This commit is contained in:
@@ -138,17 +138,17 @@ export default function Page() {
|
||||
description: t('siteNewtTunnelDescription'),
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
id: "wireguard",
|
||||
...(env.flags.disableBasicWireguardSites ? [] : [{
|
||||
id: "wireguard" as SiteType,
|
||||
title: t('siteWg'),
|
||||
description: t('siteWgDescription'),
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
id: "local",
|
||||
}]),
|
||||
...(env.flags.disableLocalSites ? [] : [{
|
||||
id: "local" as SiteType,
|
||||
title: t('local'),
|
||||
description: t('siteLocalDescription')
|
||||
}
|
||||
}])
|
||||
]);
|
||||
|
||||
const [loadingPage, setLoadingPage] = useState(true);
|
||||
|
||||
Reference in New Issue
Block a user