mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 14:43:21 -05:00
fix domain
This commit is contained in:
parent
9ece3e58f8
commit
a74ab2712e
@ -89,6 +89,9 @@
|
|||||||
Change History (most recent first):
|
Change History (most recent first):
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.15 2004/03/02 01:35:31 rpedde
|
||||||
|
fix domain
|
||||||
|
|
||||||
Revision 1.14 2004/03/02 00:03:37 rpedde
|
Revision 1.14 2004/03/02 00:03:37 rpedde
|
||||||
Merge new rendezvous code
|
Merge new rendezvous code
|
||||||
|
|
||||||
@ -335,10 +338,11 @@ static mStatus RegisterOneService(const char * richTextHostName,
|
|||||||
gServiceList = thisServ;
|
gServiceList = thisServ;
|
||||||
|
|
||||||
DPRINTF(ERR_DEBUG,
|
DPRINTF(ERR_DEBUG,
|
||||||
"Registered service %d, name '%s', type '%s', port %ld\n",
|
"Registered service %d, name '%s', type '%s', domain '%s', port %ld\n",
|
||||||
thisServ->serviceID,
|
thisServ->serviceID,
|
||||||
richTextHostName,
|
richTextHostName,
|
||||||
serviceType,
|
serviceType,
|
||||||
|
serviceDomain,
|
||||||
portNumber);
|
portNumber);
|
||||||
} else {
|
} else {
|
||||||
if (thisServ != NULL) {
|
if (thisServ != NULL) {
|
||||||
@ -390,8 +394,8 @@ void rend_callback(void) {
|
|||||||
|
|
||||||
switch(msg.cmd) {
|
switch(msg.cmd) {
|
||||||
case REND_MSG_TYPE_REGISTER:
|
case REND_MSG_TYPE_REGISTER:
|
||||||
DPRINTF(ERR_DEBUG,"Registering %s.%s (%d)\n",msg.type,msg.name,msg.port);
|
DPRINTF(ERR_DEBUG,"Registering %s.%s (%d)\n",msg.name,msg.type,msg.port);
|
||||||
RegisterOneService(msg.name,msg.type,".local",NULL,0,msg.port);
|
RegisterOneService(msg.name,msg.type,"local.",NULL,0,msg.port);
|
||||||
rend_send_response(0); /* success */
|
rend_send_response(0); /* success */
|
||||||
break;
|
break;
|
||||||
case REND_MSG_TYPE_UNREGISTER:
|
case REND_MSG_TYPE_UNREGISTER:
|
||||||
@ -475,7 +479,7 @@ int rend_private_init(char *user) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINTF(ERR_DEBUG,"Exiting");
|
DPRINTF(ERR_DEBUG,"Exiting\n");
|
||||||
|
|
||||||
DeregisterOurServices();
|
DeregisterOurServices();
|
||||||
mDNS_Close(&mDNSStorage);
|
mDNS_Close(&mDNSStorage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user