Default to 127.0.0.1 not 0.0.0.0

Closes #98
This commit is contained in:
Simon Willison 2017-11-14 21:08:46 -08:00
commit ea183b2ae3
3 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ def package(files, tag, metadata, extra_options, **extra_metadata):
@cli.command()
@click.argument('files', type=click.Path(exists=True), nargs=-1)
@click.option('-h', '--host', default='0.0.0.0', help='host for server, defaults to 0.0.0.0')
@click.option('-h', '--host', default='127.0.0.1', help='host for server, defaults to 127.0.0.1')
@click.option('-p', '--port', default=8001, help='port for server, defaults to 8001')
@click.option('--debug', is_flag=True, help='Enable debug mode - useful for development')
@click.option('--reload', is_flag=True, help='Automatically reload if code change detected - useful for development')