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
|
LAN_discovery.c
|
||||||
Messenger.c
|
Messenger.c
|
||||||
util.c
|
util.c
|
||||||
ping.c
|
ping.c)
|
||||||
timer.c)
|
|
||||||
|
|
||||||
if(SHARED_TOXCORE)
|
if(SHARED_TOXCORE)
|
||||||
add_library(toxcore SHARED ${core_sources})
|
add_library(toxcore SHARED ${core_sources})
|
||||||
|
|
|
@ -521,12 +521,12 @@ int main(int argc, char *argv[])
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
unsigned char *binary_string = hex_string_to_bin(argv[3]);
|
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);
|
free(binary_string);
|
||||||
nodelay(stdscr, TRUE);
|
nodelay(stdscr, TRUE);
|
||||||
|
|
||||||
while (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");
|
new_lines("[i] connected to DHT\n[i] define username with /n");
|
||||||
on = 1;
|
on = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user