option -p added to specify the TCP port of the misp-modules server

pull/12/head
Alexandre Dulaunoy 2016-04-18 07:20:52 +02:00
parent 778daf2f05
commit 7517485227
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,6 @@ import logging
import fnmatch
import argparse
port = 6666
def init_logger():
log = logging.getLogger('misp-modules')
@ -88,7 +86,9 @@ class QueryModule(tornado.web.RequestHandler):
if __name__ == '__main__':
argParser = argparse.ArgumentParser(description='misp-modules server')
argParser.add_argument('-t', default=False, action='store_true', help='Test mode')
argParser.add_argument('-p', default=6666, help='misp-modules TCP port (default 6666)')
args = argParser.parse_args()
port = args.p
modulesdir = '../modules'
log = init_logger()
mhandlers, modules = load_modules(modulesdir)