mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 06:24:20 +01:00
regression, revert back config changes
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user