Skip to content

Commit

Permalink
disallow routing through ios devices (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer authored Nov 11, 2023
1 parent f49c28f commit dc95d8b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/PeerUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ const PeerUpdate = (props: any) => {
os !== "" &&
!os.toLowerCase().startsWith("darwin") &&
!os.toLowerCase().startsWith("windows") &&
!os.toLowerCase().startsWith("ios") &&
!os.toLowerCase().startsWith("android")
);
};
Expand Down
1 change: 1 addition & 0 deletions src/components/RouteAddNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ const RouteAddNew = (selectedPeer: any) => {
!os.toLowerCase().startsWith("darwin") &&
!os.toLowerCase().startsWith("windows") &&
!os.toLowerCase().startsWith("android") &&
!os.toLowerCase().startsWith("ios") &&
route &&
!routes
.filter((r) => r.network_id === route.network_id)
Expand Down
1 change: 1 addition & 0 deletions src/components/RoutePeerUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const RoutePeerUpdate = () => {
!os.toLowerCase().startsWith("darwin") &&
!os.toLowerCase().startsWith("windows") &&
!os.toLowerCase().startsWith("android") &&
!os.toLowerCase().startsWith("ios") &&
route &&
!routes
.filter((r) => r.network_id === route.network_id)
Expand Down
1 change: 1 addition & 0 deletions src/components/RouteUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const RouteAddNew = () => {
!os.toLowerCase().startsWith("darwin") &&
!os.toLowerCase().startsWith("windows") &&
!os.toLowerCase().startsWith("android") &&
!os.toLowerCase().startsWith("ios") &&
route &&
!routes
.filter((r) => r.network_id === route.network_id)
Expand Down

0 comments on commit dc95d8b

Please sign in to comment.