Skip to content

Commit

Permalink
Fixed issue with hosting ISP
Browse files Browse the repository at this point in the history
  • Loading branch information
toolswatch committed Nov 26, 2015
1 parent 594bbea commit c8cf0ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
build = "0.6.0"

# Update Information
url_test = "http://www.toolswatch.org"
url = "http://www.toolswatch.org/vfeed/"
db = "vfeed.db"
db_compressed = "vfeed.db.tgz"
Expand Down
5 changes: 3 additions & 2 deletions lib/core/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
import sys
import urllib2
import tarfile
from config.constants import db, db_compressed, url, update_status
from config.constants import db, db_compressed, url, url_test, update_status
from lib.common.utils import checksum


class Update(object):
def __init__(self):
self.db = db
self.db_compressed = db_compressed
self.url_test = url_test
self.db_url = url
self.db_update = update_status
self.db_download = self.db_url + self.db_compressed
Expand All @@ -28,7 +29,7 @@ def update(self):

print "[+] Checking connectivity to", self.db_url
try:
if urllib2.urlopen(self.db_url):
if urllib2.urlopen(self.url_test):
if not os.path.isfile(self.db):
print "[+] New install. Downloading the Correlated Vulnerability Database."
self.download(self.remote_db)
Expand Down

0 comments on commit c8cf0ec

Please sign in to comment.