app: support binding to all interfaces

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-08-19 12:21:41 -04:00
parent 853de9e8cb
commit 97c8b05eee
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 2 additions and 0 deletions

View File

@ -242,6 +242,8 @@ class MoonrakerApp:
return expanded
def listen(self, host: str, port: int, ssl_port: int) -> None:
if host.lower() == "all":
host = ""
self.http_server = self.app.listen(
port, address=host, max_body_size=MAX_BODY_SIZE,
xheaders=True)