From a573e6565eea6214c089ab69fb2ead65bf3d3b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Fri, 14 Jun 2013 09:16:27 +0300 Subject: [PATCH] ntpd: Fix error "getaddrinfo: "::1" invalid host address" when IPv6 is disabled. --- ntpd/templates/ntp.conf.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntpd/templates/ntp.conf.erb b/ntpd/templates/ntp.conf.erb index b4d2fec..e504fc1 100644 --- a/ntpd/templates/ntp.conf.erb +++ b/ntpd/templates/ntp.conf.erb @@ -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