Minor fixes to libp2p

This commit is contained in:
John Jones 2017-03-06 19:04:14 -05:00
parent d4fee344a7
commit cd5d347e63
5 changed files with 6 additions and 6 deletions

View file

@ -48,7 +48,7 @@ void *ipfs_null_connection (void *ptr)
if (ipfs_null_requesting_secio(results, bytes_read)) {
struct SecureSession secure_session;
secure_session.stream = stream;
if (!libp2p_secio_handshake(&secure_session, &connection_param->local_node->identity->private_key)) {
if (!libp2p_secio_handshake(&secure_session, &connection_param->local_node->identity->private_key, 1)) {
// rejecting connection
break;
}