fix(proxy): improve connection cleanup and route validation handling

This commit is contained in:
2026-03-25 07:22:17 +00:00
parent 34dc0cb9b6
commit 53dee1fffc
12 changed files with 689 additions and 623 deletions

View File

@@ -258,7 +258,9 @@ export class RouteValidator {
errorMap.set(route.name, existingErrors);
valid = false;
}
routeNames.add(route.name);
if (route.name) {
routeNames.add(route.name);
}
}
// Validate each route
@@ -328,7 +330,7 @@ export class RouteValidator {
if (catchAllRoutes.length > 1) {
for (const route of catchAllRoutes) {
conflicts.push({
route: route.name,
route: route.name || 'unnamed',
message: `Multiple catch-all routes on port ${port}`
});
}