At a minimum, onlynet=ipv6 needs to be supported for the internal HTTP client (RPC CLI).
-
jgarzik commented at 11:39 AM on September 16, 2012: contributor
-
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?
-
laanwj commented at 9:28 AM on February 20, 2014: member
Ok
ip::tcp::resolver::querydefaults toaddress_configuredwhich 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.
- laanwj referenced this in commit b3938867f8 on Apr 7, 2014
- laanwj referenced this in commit d46a52a2f0 on Apr 7, 2014
- laanwj referenced this in commit 14a5888e0a on Apr 7, 2014
- laanwj referenced this in commit a65b3ef39c on Apr 14, 2014
- laanwj referenced this in commit ba18039d06 on Apr 14, 2014
- laanwj referenced this in commit 0a5a5b07a2 on May 8, 2014
- laanwj referenced this in commit 47ea6e0c3a on May 8, 2014
- laanwj referenced this in commit 1f584943c7 on May 12, 2014
- laanwj referenced this in commit 9dbe187f00 on May 12, 2014
- laanwj referenced this in commit f923c07754 on May 13, 2014
- laanwj closed this on May 13, 2014
- MathyV referenced this in commit 8210827fd7 on Nov 3, 2014
- owlhooter referenced this in commit 63e0e30e38 on Oct 10, 2018
- reddink referenced this in commit f2edd56469 on May 27, 2020
- KolbyML referenced this in commit 70bf7203ee on Dec 5, 2020
- MarcoFalke locked this on Sep 8, 2021