fix(dcrouter): guard auto certificate reprovisioning against unnamed routes

This commit is contained in:
2026-03-27 19:28:55 +00:00
parent 3d443fa147
commit dcd75f5e47
4 changed files with 9 additions and 3 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@serve.zone/dcrouter',
version: '11.12.1',
version: '11.12.2',
description: 'A multifaceted routing service handling mail and SMS delivery functions.'
}

View File

@@ -410,7 +410,7 @@ export class DcRouter {
const routes = this.smartProxy.routeManager.getRoutes();
for (const route of routes) {
const tls = (route as any).action?.tls;
if (tls && tls.certificate === 'auto') {
if (tls && tls.certificate === 'auto' && route.name) {
this.smartProxy.provisionCertificate(route.name).catch((err: any) => {
logger.log('warn', `Re-provision for route '${route.name}' failed: ${err?.message || err}`);
});