Fixed udp bug
This commit is contained in:
parent
e90434ba61
commit
e9636e642f
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ int multiaddress_get_ip_address(const struct MultiAddress* in, char** ip) {
|
||||||
// the incoming address is not what was expected
|
// the incoming address is not what was expected
|
||||||
if (strncmp(in->string, "/ip4/", 5) != 0 && strncmp(in->string, "/ip6/", 5) != 0)
|
if (strncmp(in->string, "/ip4/", 5) != 0 && strncmp(in->string, "/ip6/", 5) != 0)
|
||||||
return 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;
|
return 0;
|
||||||
// ip
|
// ip
|
||||||
char* str = malloc(strlen(in->string));
|
char* str = malloc(strlen(in->string));
|
||||||
|
|
Loading…
Reference in a new issue