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
commit 0aa7e3fd67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 205 additions and 9 deletions

View file

@ -576,6 +576,7 @@ namespace config {
{}, // cmd args
47989, // Base port number
"ipv4", // Address family
{}, // Bind address
platf::appdata().string() + "/sunshine.log", // log file
false, // notify_pre_releases
true, // system_tray
@ -1242,6 +1243,7 @@ namespace config {
sunshine.port = (std::uint16_t) port;
string_restricted_f(vars, "address_family", sunshine.address_family, {"ipv4"sv, "both"sv});
string_f(vars, "bind_address", sunshine.bind_address);
bool upnp = false;
bool_f(vars, "upnp"s, upnp);