prefer ip as discovery address
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 10 Sep 2021 21:32:26 +0000 (23:32 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 10 Sep 2021 21:32:26 +0000 (23:32 +0200)
music_assistant/constants.py
music_assistant/web/__init__.py

index 25e87cee0dda870a309c6506d7c55f99ee359382..dcf10619ecd903705b7f893b49f3be10e43c7d41 100755 (executable)
@@ -1,6 +1,6 @@
 """All constants for Music Assistant."""
 
-__version__ = "0.2.11"
+__version__ = "0.2.12"
 REQUIRED_PYTHON_VER = "3.8"
 
 # configuration keys/attributes
index 998139dd0b1767b37b5cbf18b0a50262e906cb7a..17411afc8ced73db726bedea2bef6b5ad1384222 100755 (executable)
@@ -153,7 +153,7 @@ class WebServer:
     @property
     def address(self) -> str:
         """Return the base HTTP address for this Music Assistant instance."""
-        return f"http://{self.hostname}:{self.port}"
+        return f"http://{self.ip_address}:{self.port}"
 
     @property
     def server_id(self) -> str: