Skip to content

Commit

Permalink
Added CLI arguments to recon-web to customize the host and port used …
Browse files Browse the repository at this point in the history
…by the webserver. Resolves #30.
  • Loading branch information
lanmaster53 committed Oct 27, 2019
1 parent 7396c2c commit 9178f85
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion recon-web
@@ -1,7 +1,14 @@
#!/usr/bin/env python3

from recon.core.web import create_app
import argparse

parser = argparse.ArgumentParser()
parser.add_argument('--host', default='127.0.0.1', help="IP address to listen on")
parser.add_argument('--port', default=5000, help="port to bind the web server to")

args = parser.parse_args()

app = create_app()
if __name__ == '__main__':
app.run()
app.run(host=args.host, port=args.port)

0 comments on commit 9178f85

Please sign in to comment.