Merge branch 'clients' of https://github.com/fosrl/pangolin_dg into clients

This commit is contained in:
miloschwartz
2025-02-21 16:58:39 -05:00
14 changed files with 79 additions and 51 deletions

View File

@@ -101,12 +101,16 @@ export async function pickClientDefaults(
subnets.push(
address.replace(
/\/\d+$/,
`/${config.getRawConfig().wg_site.block_size}`
`/${config.getRawConfig().wg_site.site_block_size}`
)
);
logger.debug(`Subnets: ${subnets}`);
logger.debug(`Address: ${address}`);
logger.debug(`Block size: ${config.getRawConfig().wg_site.block_size}`);
logger.debug(`Site block size: ${config.getRawConfig().wg_site.site_block_size}`);
const newSubnet = findNextAvailableCidr(
subnets,
config.getRawConfig().wg_site.block_size,
config.getRawConfig().wg_site.site_block_size,
address
);
if (!newSubnet) {