Ticket #10565: mtdaapd.patch

File mtdaapd.patch, 629 bytes (added by m-darwinports@…, 18 years ago)

patch to force network byte order for port advertised to Bonjour

  • src/rend-osx.c

    diff -ur mt-daapd-0.2.4/src/rend-osx.c mt-daapd-0.2.4-new/src/rend-osx.c
    old new  
    169169    case REND_MSG_TYPE_REGISTER:
    170170       DPRINTF(E_DBG,L_REND,"Registering %s.%s (%d)\n",msg.type,msg.name,msg.port);
    171171       usPort=msg.port;
     172       usPort = htons(usPort);
    172173       dns_ref=DNSServiceRegistrationCreate(msg.name,msg.type,"",usPort,
    173174                                            "Database ID=bedabb1edeadbea7",rend_reply,nil);
    174175       if(rend_addtorunloop(dns_ref)) {