From d0e4091c39e1c9e0663617e0b8c397de3d42bda6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=92=D0=BB=D0=B0?= =?UTF-8?q?=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Sat, 27 Feb 2016 19:35:41 +0300 Subject: [PATCH] fix bootstrap --- src/tox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tox.py b/src/tox.py index d0baaea..ab64e31 100644 --- a/src/tox.py +++ b/src/tox.py @@ -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)