Skip to content
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 27, 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='', 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__':, port=args.port)

0 comments on commit 9178f85

Please sign in to comment.