Skip to content
Permalink
Browse files

Added CLI arguments to recon-web to customize the host and port used …

…by the webserver. Resolves #30.
  • Loading branch information...
lanmaster53 committed Oct 26, 2019
1 parent 7396c2c commit 9178f85c397a6c881bb671615aaa662ef7d7a321
Showing with 8 additions and 1 deletion.
  1. +8 −1 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.
You can’t perform that action at this time.