allow setting IP

This commit is contained in:
SpikeHD
2022-05-16 22:19:19 -07:00
parent e7287673f5
commit b55767b276
3 changed files with 22 additions and 2 deletions

View File

@@ -82,6 +82,9 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
await setConfigOption('last_ip', this.state.ip)
await setConfigOption('last_port', this.state.port)
// Set IP
await invoke('set_proxy_addr', { addr: this.state.ip + ':' + this.state.port })
// Connect to proxy
await invoke('connect', { port: 8365 })
}