fix(network): respect configured bind address (#5700)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-09-12 20:35:11 -04:00
1 parent 2ebaae37d2
commit 9124e77f8a
12 files changed
+172 -15

No files matched your search

+7 -3
View File
@@ -26,12 +26,16 @@ extern "C" {
using namespace std::literals;
void launch_ui(const std::optional<std::string> &path) {
std::string url = std::format("https://localhost:{}", static_cast<int>(net::map_port(confighttp::PORT_HTTPS)));
std::string get_launch_ui_url(const std::optional<std::string> &path) {
std::string url = std::format("https://{}:{}", net::get_bind_address_url_host(), static_cast<int>(net::map_port(confighttp::PORT_HTTPS)));
if (path) {
url += *path;
}
platf::open_url(url);
return url;
}
void launch_ui(const std::optional<std::string> &path) {
platf::open_url(get_launch_ui_url(path));
}
namespace args {