mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
nTox and cmake fixed.
This commit is contained in:
parent
ac621d96d3
commit
2f66b31244
|
@ -10,8 +10,7 @@ set(core_sources
|
|||
LAN_discovery.c
|
||||
Messenger.c
|
||||
util.c
|
||||
ping.c
|
||||
timer.c)
|
||||
ping.c)
|
||||
|
||||
if(SHARED_TOXCORE)
|
||||
add_library(toxcore SHARED ${core_sources})
|
||||
|
|
|
@ -521,12 +521,12 @@ int main(int argc, char *argv[])
|
|||
exit(1);
|
||||
|
||||
unsigned char *binary_string = hex_string_to_bin(argv[3]);
|
||||
DHT_bootstrap(bootstrap_ip_port, binary_string);
|
||||
DHT_bootstrap(m->dht, bootstrap_ip_port, binary_string);
|
||||
free(binary_string);
|
||||
nodelay(stdscr, TRUE);
|
||||
|
||||
while (true) {
|
||||
if (on == 0 && DHT_isconnected()) {
|
||||
if (on == 0 && DHT_isconnected(m->dht)) {
|
||||
new_lines("[i] connected to DHT\n[i] define username with /n");
|
||||
on = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user