don't prompt for ignored settings in docker instances

This commit is contained in:
Izalia Mae 2022-12-08 03:31:47 -05:00
parent f287b84ea3
commit aa8090eebb

View file

@ -43,11 +43,12 @@ def cli_setup():
click.echo('The domain must not be example.com') click.echo('The domain must not be example.com')
app.config.listen = click.prompt('Which address should the relay listen on?', default=app.config.listen) if not app.config.is_docker:
app.config.listen = click.prompt('Which address should the relay listen on?', default=app.config.listen)
while True: while True:
app.config.port = click.prompt('What TCP port should the relay listen on?', default=app.config.port, type=int) app.config.port = click.prompt('What TCP port should the relay listen on?', default=app.config.port, type=int)
break break
app.config.save() app.config.save()