craigwatson / bitcoind-status

PHP application to display status and information from the Bitcoin node daemon.
https://odin.vikingserv.net
Apache License 2.0
82 stars 77 forks source link

Fix IPv6 peer output in $peer_addr_array and add doc for how to ignore peers #42

Closed jamesmacwhite closed 6 years ago

jamesmacwhite commented 6 years ago

This should fix #41. Essentially the match of the colon for splitting apart ip:port uses regex to only match the last occurrence of the : character to work for IPv6 peer addresses.

Also add a bit of documentation for how to ignore peers, with this you'll also be able to hide IPv6 peers because the array output will now be fixed and match properly.

jamesmacwhite commented 6 years ago

@craigwatson Should be sorted now. Thanks.