mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-14 19:36:24 +00:00
parseUdpRequest(): throw on invalid packet
This commit is contained in:
parent
7a417a591d
commit
e64fecc063
@ -57,7 +57,7 @@ function parseUdpRequest (msg, rinfo) {
|
|||||||
throw new Error('multiple info_hash scrape not supported')
|
throw new Error('multiple info_hash scrape not supported')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return null
|
throw new Error('Invalid action in UDP packet: ' + params.action)
|
||||||
}
|
}
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
Loading…
Reference in New Issue
Block a user