From 624c2280e463a4b006730414075b2062979dbc88 Mon Sep 17 00:00:00 2001 From: John Jones Date: Mon, 3 Apr 2017 13:26:11 -0500 Subject: [PATCH] fix of protocol name --- core/null.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/null.c b/core/null.c index 4624f53..5291bb7 100644 --- a/core/null.c +++ b/core/null.c @@ -48,7 +48,7 @@ void *ipfs_null_connection (void *ptr) session.insecure_stream = libp2p_net_multistream_stream_new(connection_param->socket); session.default_stream = session.insecure_stream; - libp2p_logger_debug("null", "Connection %d, count %d\n", connection_param->socket, *(connection_param->count)); + libp2p_logger_log("null", LOGLEVEL_INFO, "Connection %d, count %d\n", connection_param->socket, *(connection_param->count)); if (libp2p_net_multistream_negotiate(session.insecure_stream)) { @@ -96,7 +96,7 @@ void *ipfs_null_connection (void *ptr) session.default_stream->write(&session, results, results_size); } } - } else if (protocol_compare(results, bytes_read, "/kad/")) { + } else if (protocol_compare(results, bytes_read, "/ipfs/kad/")) { libp2p_logger_log("null", LOGLEVEL_DEBUG, "Attempting kademlia connection...\n"); if (!libp2p_routing_dht_handshake(&session)) { libp2p_logger_log("null", LOGLEVEL_DEBUG, "kademlia connection handshake failed\n");