removed DEFAULT section from configfile

pull/81/head
Andreas Muehlemann 2016-12-07 16:36:02 +01:00
parent 6853d67a43
commit 98a27ac3ff
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
[DEFAULT] [GEOIP]
database=/opt/misp-modules/var/GeoIP.dat database: /opt/misp-modules/var/GeoIP.dat

View File

@ -21,7 +21,7 @@ moduleinfo = {'version': '0.1', 'author': 'Andreas Muehlemann',
# get current db from http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz # get current db from http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
config = configparser.ConfigParser() config = configparser.ConfigParser()
config.read('geoip_country.cfg') config.read('geoip_country.cfg')
gi = pygeoip.GeoIP(config.get('DEFAULT', 'database')) gi = pygeoip.GeoIP(config.get('GEOIP', 'database'))
def handler(q=False): def handler(q=False):
if q is False: if q is False: