mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
handle https/http
This commit is contained in:
@@ -105,7 +105,7 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
|||||||
await setConfigOption('last_port', this.state.port)
|
await setConfigOption('last_port', this.state.port)
|
||||||
|
|
||||||
// Set IP
|
// Set IP
|
||||||
await invoke('set_proxy_addr', { addr: this.state.ip + ':' + this.state.port })
|
await invoke('set_proxy_addr', { addr: (this.state.httpsEnabled ? 'https':'http') + '://' + this.state.ip + ':' + this.state.port })
|
||||||
await invoke('enable_process_watcher', {
|
await invoke('enable_process_watcher', {
|
||||||
process: game_exe
|
process: game_exe
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user