feat(ui): add port mapping table (#1681)
This commit is contained in:
parent
359c9ec3cd
commit
f76879eb0d
4 changed files with 105 additions and 8 deletions
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
#include "config.h"
|
||||
#include "main.h"
|
||||
#include "nvhttp.h"
|
||||
#include "rtsp.h"
|
||||
#include "utility.h"
|
||||
|
||||
#include "platform/common.h"
|
||||
|
|
@ -1049,7 +1051,7 @@ namespace config {
|
|||
bool_f(vars, "always_send_scancodes", input.always_send_scancodes);
|
||||
|
||||
int port = sunshine.port;
|
||||
int_f(vars, "port"s, port);
|
||||
int_between_f(vars, "port"s, port, { 1024 + nvhttp::PORT_HTTPS, 65535 - rtsp_stream::RTSP_SETUP_PORT });
|
||||
sunshine.port = (std::uint16_t) port;
|
||||
|
||||
string_restricted_f(vars, "address_family", sunshine.address_family, { "ipv4"sv, "both"sv });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue