feat(network): allow binding to specific interface (#4481)
This commit is contained in:
parent
1fa7457eab
commit
0aa7e3fd67
13 changed files with 205 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue