]> git.ipfire.org Git - thirdparty/suricata-update.git/commitdiff
list-sources: print subscribe URL 25/head
authorJason Ish <ish@unx.ca>
Tue, 16 Jan 2018 22:46:13 +0000 (16:46 -0600)
committerJason Ish <ish@unx.ca>
Tue, 16 Jan 2018 22:46:13 +0000 (16:46 -0600)
The subscribe URL may be a sentence with a URL in it which may
contain useful information.

suricata/update/commands/listsources.py

index c6be30316d01153547a4bd6672de9c810f613ee0..26a85402e7ecc4c82ba89dda3ba31e561d33aacf 100644 (file)
@@ -53,3 +53,7 @@ def list_sources():
             print("  %s: %s" % (
                 util.bright_cyan("Parameters"),
                 util.bright_magenta(", ".join(source["parameters"]))))
+        if "subscribe-url" in source:
+            print("  %s: %s" % (
+                util.bright_cyan("Subscription"),
+                util.bright_magenta(source["subscribe-url"])))