mirror of https://github.com/qTox/qTox.git
Browse Source
Revert a bug introduced inreviewable/pr4400/r2d126b18d76where qTox calls tox_bootstrap() and tox_add_relay() with an invalid argument, which results in qTox not connecting to the bootstrap nodes from its list of bootsrap nodes and therefore failing to connect to the Tox DHT network in the case when that list is the only source of nodes to connect to. The invalid argument is node's public key, which is non-nullable but is passed a null due to invalid ToxPk object being constructed. ToxPk's constructor expects the QByteArray argument to be the byte representation of a public key, but a textual representation is passed to it instead, which creats an invalid ToxPk that resolves to null when queried for public key's bytes for calls to tox_bootstrap() and tox_add_relay(). Fixes #4385 (cherry picked from commit4e5b191553)
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue