Add support for protocol v1 (JD 2016-2019)

This commit is contained in:
redphx 2022-04-17 10:55:36 +07:00
parent d84ad34434
commit 38badd22b1
4 changed files with 51 additions and 16 deletions

View file

@ -138,7 +138,8 @@ class PrivateIpAddress extends Component {
}
componentDidMount() {
window.mitty.emit('update_addr', this.state.host_ip_addr)
let addr = this.props.pairing_method == PairingMethod.DEFAULT ? this.state.host_ip_addr : this.state.console_ip_addr
window.mitty.emit('update_addr', addr)
}
render(props, state) {