mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-26 01:24:23 +01:00
add support for listening on multiple IP addresses
git-svn-id: https://kippo.googlecode.com/svn/trunk@169 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -40,9 +40,10 @@ else:
|
||||
ssh_addr = '0.0.0.0'
|
||||
|
||||
application = service.Application('honeypot')
|
||||
service = internet.TCPServer(
|
||||
int(cfg.get('honeypot', 'ssh_port')), factory,
|
||||
interface=ssh_addr)
|
||||
service.setServiceParent(application)
|
||||
for i in ssh_addr.split():
|
||||
service = internet.TCPServer(
|
||||
int(cfg.get('honeypot', 'ssh_port')), factory,
|
||||
interface=i)
|
||||
service.setServiceParent(application)
|
||||
|
||||
# vim: set ft=python sw=4 et:
|
||||
|
||||
Reference in New Issue
Block a user