Skip to content

Commit

Permalink
Fix #3 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival-space authored May 6, 2024
1 parent 9257a12 commit 1dadb26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UtilityClient/Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void TempMessageHandler(object? _, MessageData message)
// find socket address
string host = status["Status"]?["config"]?["http_settings"]?["bind_address"]?.GetValue<string>() ?? "";
Int32 port = status["Status"]?["config"]?["http_settings"]?["port"]?.GetValue<Int32>() ?? 0;
await this.ConnectAsync($"ws://{host}:{port}/api/websocket");
await this.ConnectAsync($"ws://{(host == "0.0.0.0" ? "127.0.0.1" : host)}:{port}/api/websocket");
}

public new async Task ConnectAsync(string uri)
Expand Down

0 comments on commit 1dadb26

Please sign in to comment.