feat(network): allow binding to specific interface (#4481)

This commit is contained in:
David Lane
2025-12-23 13:08:12 -05:00
committed by GitHub
parent 1fa7457eab
commit 0aa7e3fd67
13 changed files with 205 additions and 9 deletions
+1 -1
View File
@@ -1219,7 +1219,7 @@ namespace confighttp {
server.resource["^/images/logo-sunshine-45.png$"]["GET"] = getSunshineLogoImage;
server.resource["^/assets\\/.+$"]["GET"] = getNodeModules;
server.config.reuse_address = true;
server.config.address = net::af_to_any_address_string(address_family);
server.config.address = net::get_bind_address(address_family);
server.config.port = port_https;
auto accept_and_run = [&](auto *server) {