fix bootstrap

This commit is contained in:
Андрей Владимирович 2016-02-27 19:35:41 +03:00
parent 0f6984c63e
commit d0e4091c39
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ class Tox(object):
"""
tox_err_bootstrap = c_int()
result = Tox.libtoxcore.tox_bootstrap(self._tox_pointer, c_char_p(address), c_uint16(port),
c_char_p(public_key), addressof(tox_err_bootstrap))
c_char_p(string_to_bin(public_key)), addressof(tox_err_bootstrap))
tox_err_bootstrap = tox_err_bootstrap.value
if tox_err_bootstrap == TOX_ERR_BOOTSTRAP['OK']:
return bool(result)