Allow end user to configure what ports to listen on
This commit is contained in:
parent
8bf4ade9d8
commit
beb6bdfadb
19 changed files with 149 additions and 69 deletions
|
|
@ -270,4 +270,8 @@ int write_file(const char *path, const std::string_view &contents) {
|
|||
out << contents;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::uint16_t map_port(int port) {
|
||||
return (std::uint16_t)((int)config::sunshine.port + port);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue