[Git][NTPsec/ntpsec][master] Fixed ip:port parsing error.

Ian Bruene gitlab at mg.gitlab.com
Wed Mar 14 14:03:42 UTC 2018


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
aadce621 by Ian Bruene at 2018-03-14T14:03:30Z
Fixed ip:port parsing error.

- - - - -


1 changed file:

- ntpclients/ntpsnmpd.py


Changes:

=====================================
ntpclients/ntpsnmpd.py
=====================================
--- a/ntpclients/ntpsnmpd.py
+++ b/ntpclients/ntpsnmpd.py
@@ -1135,7 +1135,7 @@ def connect(address):
     except socket.error as msg:
         log("Connection to %s failure: %s" % (repr(address), repr(msg)), 1)
         sys.exit(1)
-    log("connected to master agent at " + address, 3)
+    log("connected to master agent at " + repr(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/aadce6218e5a6272f5c2be1c061cb6b943a63076

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/aadce6218e5a6272f5c2be1c061cb6b943a63076
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/20180314/7918bb09/attachment.html>


More information about the vc mailing list