mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 00:24:45 +01:00
Use generated certificate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user