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

port is no longer passed in network byte order to tox_bootstrap_from_address()

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Loui Chang
2014-08-14 20:10:14 -04:00
parent dc9ffa6e56
commit 39556b36f3
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ void cmd_connect(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)
}
char *binary_string = hex_string_to_bin(key);
tox_bootstrap_from_address(m, ip, htons(atoi(port)), (uint8_t *) binary_string);
tox_bootstrap_from_address(m, ip, atoi(port), (uint8_t *) binary_string);
free(binary_string);
}