Implement IPv6 support

This commit is contained in:
Cameron Gutman 2023-08-26 14:10:29 -05:00
commit 62a5cd959a
10 changed files with 214 additions and 27 deletions

View file

@ -511,7 +511,8 @@ namespace config {
{}, // Password Salt
platf::appdata().string() + "/sunshine.conf", // config file
{}, // cmd args
47989,
47989, // Base port number
"ipv4", // Address family
platf::appdata().string() + "/sunshine.log", // log file
{}, // prep commands
};
@ -1110,6 +1111,8 @@ namespace config {
int_f(vars, "port"s, port);
sunshine.port = (std::uint16_t) port;
string_restricted_f(vars, "address_family", sunshine.address_family, { "ipv4"sv, "both"sv });
bool upnp = false;
bool_f(vars, "upnp"s, upnp);