From a74ab2712e5c15fe574fe70517b572fc0c134e46 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Tue, 2 Mar 2004 01:35:31 +0000 Subject: [PATCH] fix domain --- src/rend-posix.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/rend-posix.c b/src/rend-posix.c index b1661024..e8aeeb6a 100644 --- a/src/rend-posix.c +++ b/src/rend-posix.c @@ -89,6 +89,9 @@ Change History (most recent first): $Log$ + Revision 1.15 2004/03/02 01:35:31 rpedde + fix domain + Revision 1.14 2004/03/02 00:03:37 rpedde Merge new rendezvous code @@ -335,10 +338,11 @@ static mStatus RegisterOneService(const char * richTextHostName, gServiceList = thisServ; 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, richTextHostName, serviceType, + serviceDomain, portNumber); } else { if (thisServ != NULL) { @@ -390,8 +394,8 @@ void rend_callback(void) { switch(msg.cmd) { case REND_MSG_TYPE_REGISTER: - DPRINTF(ERR_DEBUG,"Registering %s.%s (%d)\n",msg.type,msg.name,msg.port); - RegisterOneService(msg.name,msg.type,".local",NULL,0,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); rend_send_response(0); /* success */ break; 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(); mDNS_Close(&mDNSStorage);