Make default server name based on hostname, fixing #111

This commit is contained in:
Ron Pedde
2006-05-24 03:53:22 +00:00
parent 510fbde5b8
commit 80f7c87567
5 changed files with 53 additions and 6 deletions

View File

@@ -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");