[Git][NTPsec/ntpsec][20l-Dec05-ntpdig-no-ipv6] ntpdig: continue instead of exit on IPv6 when there is none. solves #680

James Browning gitlab at mg.gitlab.com
Sat Dec 12 13:23:17 UTC 2020



James Browning pushed to branch 20l-Dec05-ntpdig-no-ipv6 at NTPsec / ntpsec


Commits:
0531fb5f by James Browning at 2020-12-12T05:20:58-08:00
ntpdig: continue instead of exit on IPv6 when there is none. solves #680

- - - - -


1 changed file:

- ntpclients/ntpdig.py


Changes:

=====================================
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/-/commit/0531fb5f4522daed1d6fb0b2d963cb32a6fc5631

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/0531fb5f4522daed1d6fb0b2d963cb32a6fc5631
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/e1d168f0/attachment.htm>


More information about the vc mailing list