This repository has been archived by the owner on Feb 12, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): use correct byte representation when bootstrapping
Revert a bug introduced in d126b18 where 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
- Loading branch information