Skip to content

Commit 4e97ba9

Browse files
committed
fix: link to web dashboard with non-standard port
1 parent ad72c95 commit 4e97ba9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • app/src/main/java/com/tien/piholeconnect/ui

app/src/main/java/com/tien/piholeconnect/ui/App.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ fun App(
8181
URLBuilder(
8282
protocol = it.protocol.toKtorURLProtocol(),
8383
host = it.host,
84-
user = it.basicAuthUsername,
85-
password = it.basicAuthPassword
84+
port = it.port,
85+
user = it.basicAuthUsername.ifBlank { null },
86+
password = it.basicAuthPassword.ifBlank { null }
8687
).buildString(),
8788
R.string.options_menu_web_dashboard,
8889
Icons.TwoTone.OpenInNew,

0 commit comments

Comments
 (0)