Expected Behaviour:
connecting to Unix socket, I should receive something similar to:
{"domains_being_blocked":99867,"dns_queries_today":2275,"ads_blocked_today":422,"ads_percentage_today":18.549450}
Actual Behaviour:
Socket read hangs
I looked through the AdminLTE code on Github, and see how a socket connection is made in PHP, I created a very simple PHP script to test:
<?php
$address = '127.0.0.1';
$port = 4711;
$socket = @fsockopen($address, $port);
$out = fgets($socket);
$out = rtrim($out);
print_r($out);
fclose($socket);
?>
also tried in Ruby:
require "socket"
socket = UNIXSocket.new('/run/pihole/FTL.sock')
puts "--- Read from Socket ---"
puts socket.read(10)
socket.close
Both running locally, both result in a hung execution, no exception thrown. I'm at a loss here, hoping someone has some ideas or knowledge around Pi-hole stats over Unix or TCP socket.