fix(config): correct VPN mandatory flag default handling in route config manager

This commit is contained in:
2026-03-31 11:51:45 +00:00
parent ece9e46be9
commit 0d9e6a4925
4 changed files with 9 additions and 3 deletions

View File

@@ -261,7 +261,7 @@ export class RouteConfigManager {
const dcRoute = route as IDcRouterRouteConfig;
if (!dcRoute.vpn?.enabled) return route;
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 {
...route,
security: {