mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 23:24:35 +01:00
allow setting IP
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user