mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
common: remove unused parameter "allow_deprecated" from parse_wireaddr_internal.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -201,7 +201,7 @@ static struct command_result *json_connect(struct command *cmd,
|
||||
if (!parse_wireaddr_internal(id_addr.host, addr, port, false,
|
||||
!cmd->ld->always_use_proxy
|
||||
&& !cmd->ld->pure_tor_setup,
|
||||
true, deprecated_apis,
|
||||
true,
|
||||
&err_msg)) {
|
||||
return command_fail(cmd, LIGHTNINGD,
|
||||
"Host %s:%u not valid: %s",
|
||||
|
||||
@@ -237,7 +237,7 @@ static char *opt_add_addr_withtype(const char *arg,
|
||||
|| ala != ADDR_ANNOUNCE) {
|
||||
if (!parse_wireaddr_internal(arg, &wi, ld->portnum,
|
||||
wildcard_ok, dns_ok, false,
|
||||
deprecated_apis, &err_msg)) {
|
||||
&err_msg)) {
|
||||
return tal_fmt(NULL, "Unable to parse address '%s': %s", arg, err_msg);
|
||||
}
|
||||
|
||||
@@ -318,8 +318,7 @@ static char *opt_add_addr(const char *arg, struct lightningd *ld)
|
||||
struct wireaddr_internal addr;
|
||||
|
||||
/* handle in case you used the addr option with an .onion */
|
||||
if (parse_wireaddr_internal(arg, &addr, 0, true, false, true,
|
||||
deprecated_apis, NULL)) {
|
||||
if (parse_wireaddr_internal(arg, &addr, 0, true, false, true, NULL)) {
|
||||
if (addr.itype == ADDR_INTERNAL_WIREADDR &&
|
||||
addr.u.wireaddr.type == ADDR_TYPE_TOR_V3) {
|
||||
log_unusual(ld->log, "You used `--addr=%s` option with an .onion address, please use"
|
||||
@@ -365,8 +364,7 @@ static char *opt_add_bind_addr(const char *arg, struct lightningd *ld)
|
||||
struct wireaddr_internal addr;
|
||||
|
||||
/* handle in case you used the bind option with an .onion */
|
||||
if (parse_wireaddr_internal(arg, &addr, 0, true, false, true,
|
||||
deprecated_apis, NULL)) {
|
||||
if (parse_wireaddr_internal(arg, &addr, 0, true, false, true, NULL)) {
|
||||
if (addr.itype == ADDR_INTERNAL_WIREADDR &&
|
||||
addr.u.wireaddr.type == ADDR_TYPE_TOR_V3) {
|
||||
log_unusual(ld->log, "You used `--bind-addr=%s` option with an .onion address,"
|
||||
|
||||
Reference in New Issue
Block a user