File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1793,11 +1793,15 @@ namespace confighttp {
17931793 server.config .address = net::get_bind_address (address_family);
17941794 server.config .port = port_https;
17951795
1796+ // Store bind address for logging, use "localhost" as fallback for wildcard addresses
1797+ const auto bind_addr = server.config .address ;
1798+ const auto display_addr = config::sunshine.bind_address .empty () ? " localhost" sv : std::string_view {bind_addr};
1799+
17961800 auto accept_and_run = [&](auto *server) {
17971801 try {
17981802 platf::set_thread_name (" confighttp::tcp" );
1799- server->start ([](const unsigned short port) {
1800- BOOST_LOG (info) << " Configuration UI available at [https://localhost: " sv << port << " ]" ;
1803+ server->start ([&display_addr ](const unsigned short port) {
1804+ BOOST_LOG (info) << " Configuration UI available at [https://" sv << display_addr << " : " << port << " ]" ;
18011805 });
18021806 } catch (boost::system::system_error &err) {
18031807 // It's possible the exception gets thrown after calling server->stop() from a different thread
You can’t perform that action at this time.
0 commit comments