Add comments about not processing gateway

This commit is contained in:
Owen
2026-09-24 09:49:09 -04:00
parent 021626d382
commit e68963b852
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -500,6 +500,7 @@ export function generateRemoteSubnets(
if (!sr.enabled) return false;
if (!sr.destination) return false;
// we purposely filter out the gateway resource here because we add it manually on the client
if (sr.mode === "cidr") {
// check if its a valid CIDR using zod
const cidrSchema = z.union([z.cidrv4(), z.cidrv6()]);
+1 -1
View File
@@ -231,7 +231,7 @@ export async function buildSiteConfigurationForOlmClient(
publicKey: site.publicKey,
serverIP: site.address,
serverPort: site.listenPort,
remoteSubnets: generateRemoteSubnets(allSiteResources),
remoteSubnets: generateRemoteSubnets(allSiteResources), // we dont add the gateway resources here
aliases: generateAliasConfig(allSiteResources)
});
}