Add ability to change regtype; clean up some diagnostic messages.
This commit is contained in:
+4
-4
@@ -87,10 +87,10 @@ static int mdns_external_avahi_register(char *apname, int port) {
|
||||
char mdns_port[6];
|
||||
sprintf(mdns_port, "%d", config.port);
|
||||
|
||||
char *argvwithoutmetadata[] = {NULL, apname, "_raop._tcp", mdns_port,
|
||||
char *argvwithoutmetadata[] = {NULL, apname, config.regtype, mdns_port,
|
||||
MDNS_RECORD_WITHOUT_METADATA, NULL};
|
||||
#ifdef CONFIG_METADATA
|
||||
char *argvwithmetadata[] = {NULL, apname, "_raop._tcp", mdns_port, MDNS_RECORD_WITH_METADATA,
|
||||
char *argvwithmetadata[] = {NULL, apname, config.regtype, mdns_port, MDNS_RECORD_WITH_METADATA,
|
||||
NULL};
|
||||
#endif
|
||||
char **argv;
|
||||
@@ -126,11 +126,11 @@ static int mdns_external_dns_sd_register(char *apname, int port) {
|
||||
char mdns_port[6];
|
||||
sprintf(mdns_port, "%d", config.port);
|
||||
|
||||
char *argvwithoutmetadata[] = {NULL, apname, "_raop._tcp", mdns_port,
|
||||
char *argvwithoutmetadata[] = {NULL, apname, config.regtype, mdns_port,
|
||||
MDNS_RECORD_WITHOUT_METADATA, NULL};
|
||||
|
||||
#ifdef CONFIG_METADATA
|
||||
char *argvwithmetadata[] = {NULL, apname, "_raop._tcp", mdns_port, MDNS_RECORD_WITH_METADATA,
|
||||
char *argvwithmetadata[] = {NULL, apname, config.regtype, mdns_port, MDNS_RECORD_WITH_METADATA,
|
||||
NULL};
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user