Commit aeb9ecd0 authored by Riccardo Spagni's avatar Riccardo Spagni
Browse files

filter out peers not in state_normal

parent 11f7e5c5
......@@ -54,7 +54,8 @@ try
foreach ($peerconnections['connections'] as $peer)
{
// Filter out anything not on port 18080 (we can't have ports in A records, and this also precludes most peers that don't allow incoming connections)
if ($peer['port'] == 18080)
// Also filter out anything not in "state_normal" (eg. pre-handshake or similar)
if (($peer['port'] == 18080) && ($peer['state'] == 'state_normal'))
{
$peerlist[] = $peer['ip'];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment