From: Marcel van der Veldt Date: Wed, 9 Dec 2020 12:47:12 +0000 (+0100) Subject: host the server on both IPv4 and IPv6 X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=58a3eab2d2bcce52c38f9d131cfe47a43c2f1f29;p=music-assistant-server.git host the server on both IPv4 and IPv6 --- diff --git a/music_assistant/web/__init__.py b/music_assistant/web/__init__.py index b5dd226f..fdac08d7 100755 --- a/music_assistant/web/__init__.py +++ b/music_assistant/web/__init__.py @@ -137,7 +137,8 @@ class WebServer: self.app.on_response_prepare.append(on_prepare) self._runner = web.AppRunner(self.app, access_log=None) await self._runner.setup() - http_site = web.TCPSite(self._runner, "0.0.0.0", self.port) + # set host to None to bind to all addresses on both IPv4 and IPv6 + http_site = web.TCPSite(self._runner, host=None, port=self.port) await http_site.start() LOGGER.info("Started Music Assistant server on %s", self.url) self.mass.add_event_listener(self.__async_handle_mass_events)