Implement IPv6 support
This commit is contained in:
parent
7662fe8616
commit
62a5cd959a
10 changed files with 214 additions and 27 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue