]> granicus.if.org Git - transmission/commitdiff
(trunk libT) #4571 "can't edit UDP trackers via RPC" -- fixed.
authorJordan Lee <jordan@transmissionbt.com>
Mon, 17 Oct 2011 12:44:17 +0000 (12:44 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Mon, 17 Oct 2011 12:44:17 +0000 (12:44 +0000)
libtransmission/rpcimpl.c

index ece06a33983f6c3e2b0fd5540e25129db2f71eb0..3a70036b9f0325221c8156ed102609d84501bdce 100644 (file)
@@ -982,7 +982,7 @@ replaceTrackers( tr_torrent * tor, tr_benc * urls )
 
         if(    tr_bencGetInt( pair[0], &pos )
             && tr_bencGetStr( pair[1], &newval )
-            && tr_urlIsValid( newval, -1 )
+            && tr_urlIsValidTracker( newval )
             && pos < n
             && pos >= 0 )
         {