Minor fixes to libp2p
This commit is contained in:
parent
d4fee344a7
commit
cd5d347e63
5 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue