[Git][NTPsec/ntpsec][20l-Dec05-ntpdig-no-ipv6] 2 commits: Reduce maxclock in use-pool configuration snippet
Richard Laager
gitlab at mg.gitlab.com
Sat Dec 12 23:35:31 UTC 2020
Richard Laager pushed to branch 20l-Dec05-ntpdig-no-ipv6 at NTPsec / ntpsec
Commits:
a3e5109c by Miroslav Lichvar at 2020-12-07T10:08:59+01:00
Reduce maxclock in use-pool configuration snippet
- - - - -
42ec668d by James Browning at 2020-12-12T23:35:26+00:00
ntpdig: continue instead of exit on IPv6 when there is none. solves #680
- - - - -
2 changed files:
- etc/ntp.d/use-pool
- ntpclients/ntpdig.py
Changes:
=====================================
etc/ntp.d/use-pool
=====================================
@@ -30,6 +30,11 @@
#
pool pool.ntp.org iburst
+# The following setting reduces the maximum number of sources to not use more
+# than four servers from the pool.ntp.org pool. If you have specified other
+# servers, you can increase the maxclock number accordingly.
+tos maxclock 5
+
# The following sets edit modes for GNU EMACS
# Local Variables:
# mode:conf
=====================================
ntpclients/ntpdig.py
=====================================
@@ -116,7 +116,7 @@ def queryhost(server, concurrent, timeout=5, port=123):
s.sendto(packet, sockaddr)
except socket.error as e:
log("socket error on transmission: %s" % e)
- raise SystemExit(1)
+ continue
if debug >= 2:
log("Sent to %s:" % (sockaddr[0],))
ntp.packet.dump_hex_printable(packet)
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/compare/0531fb5f4522daed1d6fb0b2d963cb32a6fc5631...42ec668ddfb82606d5aea379cc74845084b10d15
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/compare/0531fb5f4522daed1d6fb0b2d963cb32a6fc5631...42ec668ddfb82606d5aea379cc74845084b10d15
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20201212/10c83d96/attachment.htm>
More information about the vc
mailing list