mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
torv2: remove support for advertizing and connecting.
October was the date Torv2 is no longer supported by the Tor Project; it will probably not work at all by next release, so we should remove it now even though it's not quite the 6 months we prefer for deprecation cycles. I still see 110 nodes advertizing Torv2 (vs 10,292 Torv3); we still parse and display it, we just don't advertize or connect to it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
ecdc15591b
commit
2f247c7bfb
@@ -254,9 +254,8 @@ static char *opt_add_addr(const char *arg, struct lightningd *ld)
|
||||
/* 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 (addr.itype == ADDR_INTERNAL_WIREADDR && (
|
||||
addr.u.wireaddr.type == ADDR_TYPE_TOR_V2 ||
|
||||
addr.u.wireaddr.type == ADDR_TYPE_TOR_V3)) {
|
||||
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"
|
||||
" `--announce-addr` ! You are lucky in this node live some wizards and"
|
||||
" fairies, we have done this for you and announce, Be as hidden as wished",
|
||||
@@ -302,9 +301,8 @@ static char *opt_add_bind_addr(const char *arg, struct lightningd *ld)
|
||||
/* 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 (addr.itype == ADDR_INTERNAL_WIREADDR && (
|
||||
addr.u.wireaddr.type == ADDR_TYPE_TOR_V2 ||
|
||||
addr.u.wireaddr.type == ADDR_TYPE_TOR_V3)) {
|
||||
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,"
|
||||
" You are lucky in this node live some wizards and"
|
||||
" fairies, we have done this for you and don't announce, Be as hidden as wished",
|
||||
|
||||
Reference in New Issue
Block a user