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

Function opt_add_proxy_addr

lightningd/options.c:437–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437static char *opt_add_proxy_addr(const char *arg, struct lightningd *ld)
438{
439 bool needed_dns = false;
440 tal_free(ld->proxyaddr);
441
442 /* We use a tal_arr here, so we can marshal it to gossipd */
443 ld->proxyaddr = tal_arr(ld, struct wireaddr, 1);
444
445 if (!parse_wireaddr(arg, ld->proxyaddr, 9050,
446 ld->always_use_proxy ? &needed_dns : NULL,
447 NULL)) {
448 return tal_fmt(NULL, "Unable to parse Tor proxy address '%s' %s",
449 arg, needed_dns ? " (needed dns)" : "");
450 }
451 return NULL;
452}
453
454static char *opt_add_plugin(const char *arg, struct lightningd *ld)
455{

Callers

nothing calls this directly

Calls 2

tal_freeFunction · 0.85
parse_wireaddrFunction · 0.85

Tested by

no test coverage detected