mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-14 11:26:25 +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')
|
||||
}
|
||||
} else {
|
||||
return null
|
||||
throw new Error('Invalid action in UDP packet: ' + params.action)
|
||||
}
|
||||
|
||||
return params
|
||||
|
Loading…
Reference in New Issue
Block a user