Use hostname as the default Sunshine name

This commit is contained in:
Cameron Gutman 2020-01-17 20:03:50 -08:00
parent 15dd6b3cd0
commit f487fa1366
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,8 @@
# cert = /dir/cert.pem
# The name displayed by Moonlight
sunshine_name = Sunshine
# If not specified, the PC's hostname is used
# sunshine_name = Sunshine
# The minimum log level printed to standard out
#

View File

@ -3,6 +3,8 @@
#include <functional>
#include <unordered_map>
#include <boost/asio.hpp>
#include "utility.h"
#include "config.h"
@ -41,7 +43,7 @@ nvhttp_t nvhttp {
PRIVATE_KEY_FILE,
CERTIFICATE_FILE,
"sunshine"s, // sunshine_name,
boost::asio::ip::host_name(), // sunshine_name,
"03904e64-51da-4fb3-9afd-a9f7ff70fea4"s, // unique_id
"devices.json"s // file_devices
};