fix(proxy): improve connection cleanup and route validation handling
This commit is contained in:
@@ -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}`
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user