Skip to content

Commit

Permalink
use wifi or ethernet ip address for webui (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski committed Sep 15, 2024
1 parent 1405a49 commit b5e25c2
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 b5e25c2

Please sign in to comment.