From 95691d8c27d6aca5ccdfaefc1d8cb7d7eccd29f0 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Sun, 29 May 2022 21:10:38 -0700 Subject: [PATCH] fix certpath arg --- src/ui/Test.tsx | 2 +- src/ui/components/ServerLaunchSection.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/Test.tsx b/src/ui/Test.tsx index 77f2d1b..90894ac 100644 --- a/src/ui/Test.tsx +++ b/src/ui/Test.tsx @@ -4,7 +4,7 @@ import {invoke} from '@tauri-apps/api/tauri' import {dataDir} from '@tauri-apps/api/path' async function startProxy() { - await invoke('connect', { port: 2222, certificate_path: await dataDir() + '\\ca' }) + await invoke('connect', { port: 2222, certificatePath: await dataDir() + '\\ca' }) } async function stopProxy() { diff --git a/src/ui/components/ServerLaunchSection.tsx b/src/ui/components/ServerLaunchSection.tsx index a614cc1..ddfcb58 100644 --- a/src/ui/components/ServerLaunchSection.tsx +++ b/src/ui/components/ServerLaunchSection.tsx @@ -106,7 +106,7 @@ export default class ServerLaunchSection extends React.Component }) // Connect to proxy - await invoke('connect', { port: 8365, certificate_path: await dataDir() + '\\ca' }) + await invoke('connect', { port: 8365, certificatePath: await dataDir() + '\\ca' }) } // Launch the program