mirror of
https://github.com/0xERR0R/blocky.git
synced 2026-10-12 02:01:13 +00:00
Client name resolution previously only used the static clientLookup.clients mapping or a reverse-DNS query against a configured clientLookup.upstream. With neither set, the client IP was used as its own name even when Blocky already knew the name from a hosts file or custom DNS entry. ClientNamesResolver now consults Blocky's in-memory reverse sources (custom DNS, hosts files) before the rDNS upstream, performing no network round-trip. Resolution order: static mapping -> local sources -> rDNS upstream -> IP fallback. This also makes the per-client CSV log filename use the resolved hostname.