regression, revert back config changes

This commit is contained in:
Michel Oosterhof
2016-05-06 11:30:39 +04:00
parent 86b587af5c
commit 878a78ad4d

View File

@@ -99,16 +99,16 @@ class CowrieServiceMaker(object):
factory.portal.registerChecker( factory.portal.registerChecker(
core.checkers.HoneypotNoneChecker()) core.checkers.HoneypotNoneChecker())
if cfg.has_option('honeypot', 'listenAddr'): if cfg.has_option('honeypot', 'listen_addr'):
listenAddr = cfg.get('honeypot', 'listenAddr') listenAddr = cfg.get('honeypot', 'listen_addr')
else: else:
listenAddr = '0.0.0.0' listenAddr = '0.0.0.0'
# Preference: 1, option, 2, config, 3, default of 2222 # Preference: 1, option, 2, config, 3, default of 2222
if options['port'] != 0: if options['port'] != 0:
listenPort = int(options["port"]) listenPort = int(options["port"])
elif cfg.has_option('honeypot', 'listenPort'): elif cfg.has_option('honeypot', 'listen_port'):
listenPort = int(cfg.get('honeypot', 'listenPort')) listenPort = int(cfg.get('honeypot', 'listen_port'))
else: else:
listenPort = 2222 listenPort = 2222