From e9636e642f7f7ac6b1e56df292d5d9726a4a5f6a Mon Sep 17 00:00:00 2001 From: John Jones Date: Fri, 24 Mar 2017 16:49:12 -0500 Subject: [PATCH] Fixed udp bug --- multiaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiaddr.c b/multiaddr.c index a6a4ad5..cea946e 100644 --- a/multiaddr.c +++ b/multiaddr.c @@ -117,7 +117,7 @@ int multiaddress_get_ip_address(const struct MultiAddress* in, char** ip) { // the incoming address is not what was expected if (strncmp(in->string, "/ip4/", 5) != 0 && strncmp(in->string, "/ip6/", 5) != 0) return 0; - if (strstr(in->string, "/tcp/") == NULL && strstr(in->string, "/udp/") != NULL) + if (strstr(in->string, "/tcp/") == NULL && strstr(in->string, "/udp/") == NULL) return 0; // ip char* str = malloc(strlen(in->string));