prelude-correlator/master: Fix DShield host list download address, raise exception if download fail

[email protected] Wed, 17 Jun 2009 18:37:07 +0200 (CEST)
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
commit eaab47a015e97d7641230541b1c90f443cc9b021
Author: Yoann Vandoorselaere <[email protected]>
Date:   Wed Jun 17 17:46:30 2009 +0200

    Fix DShield host list download address, raise exception if download fail


========================================

 PreludeCorrelator/plugins/dshield.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

========================================

diff --git a/PreludeCorrelator/plugins/dshield.py b/PreludeCorrelator/plugins/dshield.py
index 64e2774..58ce320 100644
--- a/PreludeCorrelator/plugins/dshield.py
+++ b/PreludeCorrelator/plugins/dshield.py
@@ -28,7 +28,7 @@ from PreludeCorrelator.context import Context, Timer
 class DshieldPlugin(Plugin):
     DSHIELD_RELOAD = 7 * 24 * 60 * 60
     DSHIELD_SERVER = "www.dshield.org"
-    DSHIELD_URI = "www.dshield.org/ipsascii.html?limit=10000"
+    DSHIELD_URI = "/ipsascii.html?limit=10000"
 
     def __loadData(self, fname, age=0):
         cnt = 0
@@ -56,7 +56,7 @@ class DshieldPlugin(Plugin):
         con.request("GET", self.__uri)
         r = con.getresponse()
         if r.status != 200:
-            return
+            raise Exception, "Could not download DShield host list, error %d" % r.status
 
         fd = open(fname, "w")
         fd.write(r.read())
_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog