mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-05 08:01:26 +00:00
Every failover health check connected to www.google.com:443 and asked 1.1.1.1:53 about www.google.com, through every actor, direct ones included, on a timer. That is a fixed pattern an observer can match, direct DNS in the clear, and where Google is blocked a direct actor was always marked down. The TLS check also sent "GET / HTTP/1.1" with no Host header, which no browser does. healthCheckTcpDestination (host:port) and healthCheckUdpDestination (ip:port), health-check-tcp-destination and health-check-udp-destination in .conf, now set them; the defaults are unchanged. The DNS check asks for the TCP destination's name, or the root zone when that is an address, and the HTTP request carries a Host header, with the port when it is not 443. An IPv6 address must be in brackets. A malformed value fails at startup. A test runs real checks through a direct actor against local listeners.