fix DHT_bootstrap key loading

Introduced by 643eea60bb
This commit is contained in:
Anthony Bilinski 2018-04-19 19:02:11 -07:00 committed by Robin Lindén
parent 91f65354a2
commit 291a849a5a
No known key found for this signature in database
GPG Key ID: 601A604B7E605776

View File

@ -71,7 +71,7 @@ static void manage_keys(DHT *dht)
}
dht_set_self_public_key(dht, keys);
dht_set_self_public_key(dht, keys + CRYPTO_PUBLIC_KEY_SIZE);
dht_set_self_secret_key(dht, keys + CRYPTO_PUBLIC_KEY_SIZE);
printf("Keys loaded successfully.\n");
} else {
memcpy(keys, dht_get_self_public_key(dht), CRYPTO_PUBLIC_KEY_SIZE);