fix(config): correct VPN mandatory flag default handling in route config manager
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-03-31 - 11.23.5 - fix(config)
|
||||||
|
correct VPN mandatory flag default handling in route config manager
|
||||||
|
|
||||||
|
- Changes the VPN mandatory check so it only applies when explicitly set to true, matching the updated default behavior of false.
|
||||||
|
- Prevents routes from being treated as VPN-mandatory when the setting is omitted.
|
||||||
|
|
||||||
## 2026-03-31 - 11.23.4 - fix(deps)
|
## 2026-03-31 - 11.23.4 - fix(deps)
|
||||||
bump @push.rocks/smartvpn to 1.17.1
|
bump @push.rocks/smartvpn to 1.17.1
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@serve.zone/dcrouter',
|
name: '@serve.zone/dcrouter',
|
||||||
version: '11.23.4',
|
version: '11.23.5',
|
||||||
description: 'A multifaceted routing service handling mail and SMS delivery functions.'
|
description: 'A multifaceted routing service handling mail and SMS delivery functions.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ export class RouteConfigManager {
|
|||||||
const dcRoute = route as IDcRouterRouteConfig;
|
const dcRoute = route as IDcRouterRouteConfig;
|
||||||
if (!dcRoute.vpn?.enabled) return route;
|
if (!dcRoute.vpn?.enabled) return route;
|
||||||
const allowList = vpnAllowList(dcRoute.vpn.allowedServerDefinedClientTags);
|
const allowList = vpnAllowList(dcRoute.vpn.allowedServerDefinedClientTags);
|
||||||
const mandatory = dcRoute.vpn.mandatory !== false; // defaults to true
|
const mandatory = dcRoute.vpn.mandatory === true; // defaults to false
|
||||||
return {
|
return {
|
||||||
...route,
|
...route,
|
||||||
security: {
|
security: {
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@serve.zone/dcrouter',
|
name: '@serve.zone/dcrouter',
|
||||||
version: '11.23.4',
|
version: '11.23.5',
|
||||||
description: 'A multifaceted routing service handling mail and SMS delivery functions.'
|
description: 'A multifaceted routing service handling mail and SMS delivery functions.'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user