mirror of https://github.com/MISP/misp-modules
commit
88d9f0d75a
|
@ -93,7 +93,7 @@ if __name__ == '__main__':
|
||||||
application = tornado.web.Application(service)
|
application = tornado.web.Application(service)
|
||||||
log.info('MISP modules server started on TCP port {0}'.format(port))
|
log.info('MISP modules server started on TCP port {0}'.format(port))
|
||||||
application.listen(port)
|
application.listen(port)
|
||||||
if sys.argv[1] == '-t':
|
if len(sys.argv) == 2 and sys.argv[1] == '-t':
|
||||||
log.info('MISP modules started in test-mode, quitting immediately.')
|
log.info('MISP modules started in test-mode, quitting immediately.')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
tornado.ioloop.IOLoop.instance().start()
|
tornado.ioloop.IOLoop.instance().start()
|
||||||
|
|
Loading…
Reference in New Issue