Use generated certificate

This commit is contained in:
KingRainbow44
2022-05-29 22:27:04 -04:00
parent 1b945253b6
commit 2e90635ba5
6 changed files with 16 additions and 12 deletions

View File

@@ -9,6 +9,7 @@ import { invoke } from '@tauri-apps/api/tauri'
import Server from '../../resources/icons/server.svg'
import './ServerLaunchSection.css'
import {dataDir} from '@tauri-apps/api/path'
interface IProps {
[key: string]: any
@@ -105,7 +106,7 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
})
// Connect to proxy
await invoke('connect', { port: 8365 })
await invoke('connect', { port: 8365, certificate_path: await dataDir() + '\\ca' })
}
// Launch the program