[Git][NTPsec/ntpsec][master] ntpdig: continue instead of exit on IPv6 when there is none. solves #680

Richard Laager gitlab at mg.gitlab.com
Sat Dec 12 23:35:39 UTC 2020



Richard Laager pushed to branch master at NTPsec / ntpsec


Commits:
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

- - - - -


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/42ec668ddfb82606d5aea379cc74845084b10d15

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


More information about the vc mailing list