summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r--toxcore/net_crypto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c
index f6234a08..8e53143f 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -1704,6 +1704,7 @@ int accept_crypto_connection(Net_Crypto *c, New_Connection *n_c)
1704 1704
1705 memcpy(conn->dht_public_key, n_c->dht_public_key, crypto_box_PUBLICKEYBYTES); 1705 memcpy(conn->dht_public_key, n_c->dht_public_key, crypto_box_PUBLICKEYBYTES);
1706 conn->packet_send_rate = CRYPTO_PACKET_MIN_RATE; 1706 conn->packet_send_rate = CRYPTO_PACKET_MIN_RATE;
1707 conn->packet_send_rate_requested = CRYPTO_PACKET_MIN_RATE;
1707 conn->packets_left = CRYPTO_MIN_QUEUE_LENGTH; 1708 conn->packets_left = CRYPTO_MIN_QUEUE_LENGTH;
1708 conn->rtt_time = DEFAULT_PING_CONNECTION; 1709 conn->rtt_time = DEFAULT_PING_CONNECTION;
1709 crypto_connection_add_source(c, crypt_connection_id, n_c->source); 1710 crypto_connection_add_source(c, crypt_connection_id, n_c->source);
@@ -1746,6 +1747,7 @@ int new_crypto_connection(Net_Crypto *c, const uint8_t *real_public_key, const u
1746 crypto_box_keypair(conn->sessionpublic_key, conn->sessionsecret_key); 1747 crypto_box_keypair(conn->sessionpublic_key, conn->sessionsecret_key);
1747 conn->status = CRYPTO_CONN_COOKIE_REQUESTING; 1748 conn->status = CRYPTO_CONN_COOKIE_REQUESTING;
1748 conn->packet_send_rate = CRYPTO_PACKET_MIN_RATE; 1749 conn->packet_send_rate = CRYPTO_PACKET_MIN_RATE;
1750 conn->packet_send_rate_requested = CRYPTO_PACKET_MIN_RATE;
1749 conn->packets_left = CRYPTO_MIN_QUEUE_LENGTH; 1751 conn->packets_left = CRYPTO_MIN_QUEUE_LENGTH;
1750 conn->rtt_time = DEFAULT_PING_CONNECTION; 1752 conn->rtt_time = DEFAULT_PING_CONNECTION;
1751 memcpy(conn->dht_public_key, dht_public_key, crypto_box_PUBLICKEYBYTES); 1753 memcpy(conn->dht_public_key, dht_public_key, crypto_box_PUBLICKEYBYTES);