Skip to content

Commit

Permalink
[vnet] enable VNet in Connect on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nklaassen committed Feb 3, 2025
1 parent 0bd1d87 commit 7967582
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/packages/teleterm/src/ui/Vnet/vnetContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ export const VnetContextProvider: FC<PropsWithChildren> = props => {
autoStart: false,
});

const isSupported = useMemo(
() => mainProcessClient.getRuntimeSettings().platform === 'darwin',
const isSupported = useMemo(() => {
const { platform } = mainProcessClient.getRuntimeSettings()
return platform === 'darwin' || platform == 'win32'
},
[mainProcessClient]
);

Expand Down

0 comments on commit 7967582

Please sign in to comment.