1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 06:56:44 +02:00

separate bootstrapping and adding TCP relays per toxcore API changes

This commit is contained in:
Jfreegman
2015-05-24 17:56:30 -04:00
committed by cnhenry
parent ef1068b6aa
commit ca1fca5aa5
2 changed files with 27 additions and 4 deletions

View File

@ -260,6 +260,7 @@ void cmd_connect(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)
TOX_ERR_BOOTSTRAP err;
tox_bootstrap(m, ip, atoi(port), (uint8_t *) binary_string, &err);
tox_add_tcp_relay(m, ip, atoi(port), (uint8_t *) binary_string, &err);
free(binary_string);
switch (err) {