From: fredrik Date: Fri, 4 Nov 2005 15:51:27 +0000 (+0000) Subject: Don't request file lists by TTH (since it doesn't work). X-Git-Tag: 0.1~123 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=d57f938a6458b467027cfe295039c0b5c2b2532d Don't request file lists by TTH (since it doesn't work). git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@456 959494ce-11ee-0310-bf91-de5d638817bd --- 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);