Update Harbor client and gateway functionality
This commit is contained in:
+8
-1
@@ -538,6 +538,10 @@ const routeRulesService = createRouteRulesService({
|
||||
),
|
||||
restoreRunning: () => startSingbox(),
|
||||
},
|
||||
route: {
|
||||
isGatewayDirect: () => settings.appMode === 'client'
|
||||
&& gatewayAutoService.read().mode === 'gateway-direct',
|
||||
},
|
||||
serialize: serializeControl,
|
||||
runOperation: (operation) => withOperation('route-rules', operation),
|
||||
});
|
||||
@@ -851,7 +855,10 @@ if (bootWantsRunning) {
|
||||
appliedProfileId: appliedProfile.id,
|
||||
appliedServerId: appliedServer.id,
|
||||
appliedServerSnapshot: appliedServer,
|
||||
...(target ? { appliedRouteRules: state.routeRules } : {}),
|
||||
...(settings.appMode === 'client'
|
||||
&& gatewayAutoService.read().mode === 'gateway-direct'
|
||||
? { appliedRouteRules: [] }
|
||||
: target ? { appliedRouteRules: state.routeRules } : {}),
|
||||
}));
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user