ntpd: Fix error "getaddrinfo: "::1" invalid host address" when IPv6 is disabled.

This commit is contained in:
Timo Mkinen 2013-06-14 09:16:27 +03:00
parent 871a98bc2a
commit a573e6565e

View file

@ -16,7 +16,9 @@ restrict -6 default nomodify notrap nopeer noquery
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1 nomodify
<% if @ipv6enabled == "true" -%>
restrict ::1 nomodify
<% end -%>
# Drift file.
driftfile /var/lib/ntp/ntp.drift