MCPcopy Create free account
hub / github.com/ElementsProject/lightning / is_ipaddr

Function is_ipaddr

common/wireaddr.c:355–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355bool is_ipaddr(const char *arg)
356{
357 struct in_addr v4;
358 struct in6_addr v6;
359 if (inet_pton(AF_INET, arg, &v4))
360 return true;
361 if (inet_pton(AF_INET6, arg, &v6))
362 return true;
363 return false;
364}
365
366bool is_toraddr(const char *arg)
367{

Callers 2

is_dnsaddrFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68