make proxy optional

This commit is contained in:
SpikeHD
2022-07-19 17:14:55 -07:00
parent 8ff06f6d29
commit 3799ec648d
4 changed files with 34 additions and 3 deletions

View File

@@ -121,8 +121,10 @@ export default class ServerLaunchSection extends React.Component<{}, IState> {
process: proc_name || game_exe
})
// Connect to proxy
await invoke('connect', { port: 8365, certificatePath: await dataDir() + '\\cultivation\\ca' })
if (config.use_internal_proxy) {
// Connect to proxy
await invoke('connect', { port: 8365, certificatePath: await dataDir() + '\\cultivation\\ca' })
}
// Open server as well if the options are set
if (config.grasscutter_with_game) {