[Git][NTPsec/ntpsec][master] Fixed missing address/hostname for pools that return "::"
Ian Bruene
gitlab at mg.gitlab.com
Mon Jun 19 17:06:00 UTC 2017
Ian Bruene pushed to branch master at NTPsec / ntpsec
Commits:
1051db16 by Ian Bruene at 2017-06-19T11:49:14-05:00
Fixed missing address/hostname for pools that return "::"
- - - - -
1 changed file:
- pylib/util.py
Changes:
=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -828,10 +828,12 @@ class PeerSummary:
# servers setup via numerical IP Address have only srcadr
# servers setup via DNS have both srcadr and srchost
# refclocks have both srcadr and srchost
- # pool has "0.0.0.0" and srchost
+ # pool has "0.0.0.0" (or "::") and srchost
# slots setup via pool have only srcadr
if srcadr is not None \
- and srcadr != "0.0.0.0" and srcadr[:7] != "127.127":
+ and srcadr != "0.0.0.0" \
+ and srcadr[:7] != "127.127" \
+ and srcadr != "::":
if self.showhostnames:
try:
if self.debug:
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/1051db16fcfb7b47a5e2dc9dc999125a26f15204
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/1051db16fcfb7b47a5e2dc9dc999125a26f15204
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/20170619/097311bb/attachment.html>
More information about the vc
mailing list