mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-26 04:26:14 -05:00
Make default server name based on hostname, fixing #111
This commit is contained in:
@@ -429,8 +429,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
#ifndef WITHOUT_MDNS
|
||||
if(config.use_mdns) { /* register services */
|
||||
/* FIXME: get default name from hostname (os_hostname()?) */
|
||||
servername = conf_alloc_string("general","servername","mt-daapd");
|
||||
servername = conf_get_servername();
|
||||
|
||||
memset(txtrecord,0,sizeof(txtrecord));
|
||||
txt_add(txtrecord,"txtvers=1");
|
||||
|
||||
Reference in New Issue
Block a user