mirror of https://github.com/zlatinb/muwire
add type to the tracker pong and echo the infohash that was queried
parent
acee9a5805
commit
c306864781
|
@ -108,6 +108,7 @@ class TrackerResponder {
|
||||||
}
|
}
|
||||||
|
|
||||||
def response = [:]
|
def response = [:]
|
||||||
|
response.type = "TrackerPong"
|
||||||
response.me = me.toBase64()
|
response.me = me.toBase64()
|
||||||
|
|
||||||
if (!muSettings.allowTracking) {
|
if (!muSettings.allowTracking) {
|
||||||
|
@ -128,6 +129,7 @@ class TrackerResponder {
|
||||||
log.warning("infoHash missing")
|
log.warning("infoHash missing")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
response.infoHash = json.infoHash
|
||||||
|
|
||||||
byte[] infoHashBytes = Base64.decode(json.infoHash)
|
byte[] infoHashBytes = Base64.decode(json.infoHash)
|
||||||
InfoHash infoHash = new InfoHash(infoHashBytes)
|
InfoHash infoHash = new InfoHash(infoHashBytes)
|
||||||
|
|
Loading…
Reference in New Issue