Skip to content

Commit

Permalink
python/hpfeeds - Check if dynip_resolve starts with http
Browse files Browse the repository at this point in the history
  • Loading branch information
phibos committed Jun 26, 2018
1 parent aff8c00 commit 08efff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/python/dionaea/hpfeeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def __init__(self, path, config=None):
self.dynip_resolve = config.get('dynip_resolve', '')
self.dynip_timer = None
self.ownip = None
if self.dynip_resolve and 'http' in self.dynip_resolve:
if isinstance(self.dynip_resolve, str) and self.dynip_resolve.startswith("http"):
if pyev is None:
logger.debug('You are missing the python pyev binding in your dionaea installation.')
else:
Expand Down

0 comments on commit 08efff4

Please sign in to comment.