[Git][NTPsec/ntpsec][master] Config parser can handle IP addresses.

Ian Bruene gitlab at mg.gitlab.com
Tue Mar 13 21:24:37 UTC 2018


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
398a8ada by Ian Bruene at 2018-03-13T21:24:00Z
Config parser can handle IP addresses.

- - - - -


1 changed file:

- ntpclients/ntpsnmpd.py


Changes:

=====================================
ntpclients/ntpsnmpd.py
=====================================
--- a/ntpclients/ntpsnmpd.py
+++ b/ntpclients/ntpsnmpd.py
@@ -1133,7 +1133,7 @@ def connect(address):
             sock = socket.socket(af, socket.SOCK_STREAM)
             sock.connect((host, port))
     except socket.error as msg:
-        log(repr(msg), 1)
+        log("Connection to %s failure: %s" % (repr(address), repr(msg)), 1)
         sys.exit(1)
     log("connected to master agent at " + address, 3)
     return sock
@@ -1193,7 +1193,7 @@ def loadSettings(filename, optionList):
     with open(filename) as f:
         data = f.read()
         parser = shlex.shlex(data)
-        parser.wordchars += "-"
+        parser.wordchars += "-."
         data = [x for x in parser]
         i = 0
         dataLen = len(data)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/398a8ada84ec67587d6c603a4f889fc71cc72a14

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/398a8ada84ec67587d6c603a4f889fc71cc72a14
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/20180313/0fad6f08/attachment.html>


More information about the vc mailing list