]> granicus.if.org Git - transmission/commitdiff
Don't propagate information about ut_holepunch over PEX.
authorJuliusz Chroboczek <jch@pps.univ-paris-diderot.fr>
Fri, 18 Feb 2011 00:36:31 +0000 (00:36 +0000)
committerJuliusz Chroboczek <jch@pps.univ-paris-diderot.fr>
Fri, 18 Feb 2011 00:36:31 +0000 (00:36 +0000)
It's not useful, says Greg.

libtransmission/peer-msgs.c

index 73cbb90125abd9444534893d89848c6816a831c5..826682bc4c8ba4fc0e7023bb747bdc305a65962f 100644 (file)
@@ -939,12 +939,6 @@ parseLtepHandshake( tr_peermsgs *     msgs,
             msgs->ut_metadata_id = (uint8_t) i;
             dbgmsg( msgs, "msgs->ut_metadata_id is %d", (int)msgs->ut_metadata_id );
         }
-        /* We don't support ut_holepunch yet, but we might as well
-           propagate this information over PEX. */
-        if( tr_bencDictFindInt( sub, "ut_holepunch", &i ) ) {
-            if( i != 0 )
-                pex.flags |= ADDED_F_HOLEPUNCH;
-        }
     }
 
     /* look for metainfo size (BEP 9) */