diff options
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 556acc27..32c89867 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -1977,8 +1977,8 @@ Messenger *new_messenger(Mono_Time *mono_time, Messenger_Options *options, unsig | |||
1977 | 1977 | ||
1978 | m->onion = new_onion(m->mono_time, m->dht); | 1978 | m->onion = new_onion(m->mono_time, m->dht); |
1979 | m->onion_a = new_onion_announce(m->mono_time, m->dht); | 1979 | m->onion_a = new_onion_announce(m->mono_time, m->dht); |
1980 | m->onion_c = new_onion_client(m->mono_time, m->net_crypto); | 1980 | m->onion_c = new_onion_client(m->log, m->mono_time, m->net_crypto); |
1981 | m->fr_c = new_friend_connections(m->mono_time, m->onion_c, options->local_discovery_enabled); | 1981 | m->fr_c = new_friend_connections(m->log, m->mono_time, m->onion_c, options->local_discovery_enabled); |
1982 | 1982 | ||
1983 | if (!(m->onion && m->onion_a && m->onion_c && m->fr_c)) { | 1983 | if (!(m->onion && m->onion_a && m->onion_c && m->fr_c)) { |
1984 | kill_friend_connections(m->fr_c); | 1984 | kill_friend_connections(m->fr_c); |
@@ -1995,8 +1995,8 @@ Messenger *new_messenger(Mono_Time *mono_time, Messenger_Options *options, unsig | |||
1995 | } | 1995 | } |
1996 | 1996 | ||
1997 | if (options->tcp_server_port) { | 1997 | if (options->tcp_server_port) { |
1998 | m->tcp_server = new_TCP_server(options->ipv6enabled, 1, &options->tcp_server_port, dht_get_self_secret_key(m->dht), | 1998 | m->tcp_server = new_TCP_server(m->log, options->ipv6enabled, 1, &options->tcp_server_port, |
1999 | m->onion); | 1999 | dht_get_self_secret_key(m->dht), m->onion); |
2000 | 2000 | ||
2001 | if (m->tcp_server == nullptr) { | 2001 | if (m->tcp_server == nullptr) { |
2002 | kill_friend_connections(m->fr_c); | 2002 | kill_friend_connections(m->fr_c); |