X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Ffnet-dc.c;h=0009d54e3226643736927d6e6b6556e75ba92d98;hb=65399bc233d5f8910bf589d08b43b933975b462a;hp=ec19a5632913dbc0ecff932f54e7f333bfa5d174;hpb=1b14d3d88207a2640b403947a593bb6a0b558039;p=doldaconnect.git diff --git a/daemon/fnet-dc.c b/daemon/fnet-dc.c index ec19a56..0009d54 100644 --- a/daemon/fnet-dc.c +++ b/daemon/fnet-dc.c @@ -575,8 +575,11 @@ static char *getadcid(struct dcpeer *peer) { char *buf; char *ret; + int isfilelist; - if((peer->transfer->hash != NULL) && isdchash(peer->transfer->hash) && supports(peer, "tthf")) + if(!wcscmp(peer->transfer->path, L"files.xml") || !wcscmp(peer->transfer->path, L"files.xml.bz2") || !wcscmp(peer->transfer->path, L"MyList.DcLst")) + isfilelist = 1; + if(!isfilelist && (peer->transfer->hash != NULL) && isdchash(peer->transfer->hash) && supports(peer, "tthf")) { buf = base32encode(peer->transfer->hash->buf, 24); ret = sprintf2("TTH/%.39s", buf);