Skip to content

Commit

Permalink
use wifi or ethernet ip address for webui
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski committed Sep 15, 2024
1 parent 4824cba commit df67e90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tdmgr/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ def is_online(self):
return self.p.get("LWT", self.p["Offline"]) == self.p["Online"]

@property
def url(self):
if url := self.p.get("IPAddress", None):
return f"http://{url}"
def url(self) -> Optional[str]:
if self.ip_address != "0.0.0.0":
return f"http://{self.ip_address}"

def version(self, short=True):
if version := self.p.get("Version"):
Expand Down

0 comments on commit df67e90

Please sign in to comment.