Dont send site if it missing public key

This commit is contained in:
Owen
2026-03-12 16:33:33 -07:00
parent f021b73458
commit 6c30f6db31

View File

@@ -42,6 +42,13 @@ export async function buildSiteConfigurationForOlmClient(
continue; continue;
} }
if (!site.publicKey || site.publicKey == "") { // the site is not ready to accept new peers
logger.warn(
`Site ${site.siteId} has no public key, skipping`
);
continue;
}
// if (site.lastHolePunch && now - site.lastHolePunch > 6 && relay) { // if (site.lastHolePunch && now - site.lastHolePunch > 6 && relay) {
// logger.warn( // logger.warn(
// `Site ${site.siteId} last hole punch is too old, skipping` // `Site ${site.siteId} last hole punch is too old, skipping`