HTTP client needs IPv6 support #1827

issue jgarzik opened this issue on September 16, 2012
  1. jgarzik commented at 11:39 AM on September 16, 2012: contributor

    At a minimum, onlynet=ipv6 needs to be supported for the internal HTTP client (RPC CLI).

  2. laanwj commented at 9:23 AM on February 18, 2014: member

    Indeed looks like bitcoin-cli cannot connect to IPv6 addresses, or not even parse them

    $ bitcoin-cli -rpcconnect='::1' stop
    error: Host not found (authoritative)
    $ bitcoin-cli -rpcconnect='[::1]' stop
    error: Host not found (authoritative)
    $ bitcoin-cli -rpcconnect='[::1]:12345' stop
    error: Host not found (authoritative)
    

    I'm afraid to ask, but how have people always tested this stuff?

  3. laanwj commented at 9:28 AM on February 20, 2014: member

    Ok ip::tcp::resolver::query defaults to address_configured which means that it will never pick a IPv6 address if IPv6 is only configured as localhost (see http://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio/reference/ip__basic_resolver_query.html ).

    So if you have a (non-localhost) IPv6 network set-up it should be possible to use bitcoin-cli with IPv6 addresses already.

    If you don't have a non-localhost IPv6 network then it doesn't make sense to resolve any IPv6 addresses (apart from possibly localhost for testing, or specified numeric addresses?), so I think the current setting makes sense.

  4. laanwj referenced this in commit b3938867f8 on Apr 7, 2014
  5. laanwj referenced this in commit d46a52a2f0 on Apr 7, 2014
  6. laanwj referenced this in commit 14a5888e0a on Apr 7, 2014
  7. laanwj referenced this in commit a65b3ef39c on Apr 14, 2014
  8. laanwj referenced this in commit ba18039d06 on Apr 14, 2014
  9. laanwj referenced this in commit 0a5a5b07a2 on May 8, 2014
  10. laanwj referenced this in commit 47ea6e0c3a on May 8, 2014
  11. laanwj referenced this in commit 1f584943c7 on May 12, 2014
  12. laanwj referenced this in commit 9dbe187f00 on May 12, 2014
  13. laanwj referenced this in commit f923c07754 on May 13, 2014
  14. laanwj closed this on May 13, 2014

  15. MathyV referenced this in commit 8210827fd7 on Nov 3, 2014
  16. owlhooter referenced this in commit 63e0e30e38 on Oct 10, 2018
  17. reddink referenced this in commit f2edd56469 on May 27, 2020
  18. KolbyML referenced this in commit 70bf7203ee on Dec 5, 2020
  19. MarcoFalke locked this on Sep 8, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-20 00:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me