Merge pull request #3 from cgutman/hostname
Use hostname as the default Sunshine name
This commit is contained in:
commit
c98d0e70d4
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
#
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue