Skip to content

Commit 6280ec8

Browse files
committed
respect the force_all_traffic flag
1 parent 2f14735 commit 6280ec8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/pages/client/pages/ClientInstancePage/components/LocationsList/components/LocationCardRoute/LocationCardRoute.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const LocationCardRoute = ({ location, selectedDefguardInstance }: Props)
3737
{
3838
text: LL.pages.client.pages.instancePage.controls.traffic.predefinedTraffic(),
3939
value: 0,
40+
disabled: selectedDefguardInstance?.force_all_traffic,
4041
},
4142
{
4243
text: LL.pages.client.pages.instancePage.controls.traffic.allTraffic(),

src/pages/client/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type DefguardInstance = {
88
active: boolean;
99
pubkey: string;
1010
disable_all_traffic: boolean;
11+
force_all_traffic: boolean;
1112
openid_display_name?: string;
1213
};
1314

0 commit comments

Comments
 (0)