fix(dcrouter): sync allowed tunnel edges when merged routes change

This commit is contained in:
2026-04-02 17:59:51 +00:00
parent f145798f39
commit 04ec387ce5
4 changed files with 13 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## 2026-04-02 - 12.2.5 - fix(dcrouter)
sync allowed tunnel edges when merged routes change
- Triggers tunnelManager.syncAllowedEdges() after route updates are applied
- Keeps derived ports in the Rust hub binary aligned with merged route changes
## 2026-04-02 - 12.2.4 - fix(routes)
support profile and target metadata in route creation and refresh remote ingress routes after config initialization

View File

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

View File

@@ -478,11 +478,15 @@ export class DcRouter {
}
: undefined,
this.referenceResolver,
// Sync merged routes to RemoteIngressManager whenever routes change
// Sync merged routes to RemoteIngressManager whenever routes change,
// then push updated derived ports to the Rust hub binary
(routes) => {
if (this.remoteIngressManager) {
this.remoteIngressManager.setRoutes(routes as any[]);
}
if (this.tunnelManager) {
this.tunnelManager.syncAllowedEdges();
}
},
);
this.apiTokenManager = new ApiTokenManager();

View File

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