mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 03:14:44 +00:00
Disabled some checking
This commit is contained in:
parent
aff27558dd
commit
6855edf649
@ -130,11 +130,11 @@ void QTracker::respondToAnnounceRequest(QTcpSocket *socket, const HttpRequestPar
|
|||||||
}
|
}
|
||||||
annonce_req.info_hash = parser.get("info_hash");
|
annonce_req.info_hash = parser.get("info_hash");
|
||||||
// info_hash cannot be longer than 20 bytes
|
// info_hash cannot be longer than 20 bytes
|
||||||
if(annonce_req.info_hash.toAscii().length() > 20) {
|
/*if(annonce_req.info_hash.toAscii().length() > 20) {
|
||||||
qDebug("QTracker: Info_hash is not 20 byte long: %s (%d)", qPrintable(annonce_req.info_hash), annonce_req.info_hash.toAscii().length());
|
qDebug("QTracker: Info_hash is not 20 byte long: %s (%d)", qPrintable(annonce_req.info_hash), annonce_req.info_hash.toAscii().length());
|
||||||
respondInvalidRequest(socket, 150, "Invalid infohash");
|
respondInvalidRequest(socket, 150, "Invalid infohash");
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
// 2. Get peer ID
|
// 2. Get peer ID
|
||||||
if(parser.get("peer_id").isNull()) {
|
if(parser.get("peer_id").isNull()) {
|
||||||
qDebug("QTracker: Missing peer_id");
|
qDebug("QTracker: Missing peer_id");
|
||||||
@ -143,11 +143,11 @@ void QTracker::respondToAnnounceRequest(QTcpSocket *socket, const HttpRequestPar
|
|||||||
}
|
}
|
||||||
annonce_req.peer.peer_id = parser.get("peer_id");
|
annonce_req.peer.peer_id = parser.get("peer_id");
|
||||||
// peer_id cannot be longer than 20 bytes
|
// peer_id cannot be longer than 20 bytes
|
||||||
if(annonce_req.peer.peer_id.length() > 20) {
|
/*if(annonce_req.peer.peer_id.length() > 20) {
|
||||||
qDebug("QTracker: peer_id is not 20 byte long: %s", qPrintable(annonce_req.peer.peer_id));
|
qDebug("QTracker: peer_id is not 20 byte long: %s", qPrintable(annonce_req.peer.peer_id));
|
||||||
respondInvalidRequest(socket, 151, "Invalid peerid");
|
respondInvalidRequest(socket, 151, "Invalid peerid");
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
// 3. Get port
|
// 3. Get port
|
||||||
if(parser.get("port").isNull()) {
|
if(parser.get("port").isNull()) {
|
||||||
qDebug("QTracker: Missing port");
|
qDebug("QTracker: Missing port");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user