mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
4441cf762c6e7e62ca20c98b77799e1574095f41
If we're talking to upstream servers from a fixed port, specified by query-port we create the fds to do this once, before dropping root, so that ports <1024 can be used. But we call check_servers() before reading /etc/resolv.conf, so if the only servers are in resolv.conf, at that point there will be no servers, and the fds get garbage collected away, only to be recreated (but without root) after we read /etc/resolv.conf Make pre-allocated server fds immortal, to avoid this problem.
Description
No description provided
Languages
C
94.2%
Perl
2.3%
HTML
1.2%
Shell
1.1%
Makefile
0.6%
Other
0.6%