mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-11-29 08:00:27 +00:00
Run DNS lookups in bounded, cancellable tasks so slow upstream queries do not stall the TUN packet loop. Keep local DNS available when the upstream limit is reached, and enqueue replies without blocking. Answer unconfigured IPv4 PTR queries inside local TUN prefixes with authoritative NODATA and an SOA. Preserve configured authorities and forward other queries. Cancel pending lookups when the resolver closes. Install Linux BPF before enabling packet reception, and synchronize the listener recovery tests with accepted socket handling. Fixes #2849.