parseUdpRequest(): throw on invalid packet

This commit is contained in:
Astro 2014-12-11 16:19:08 +01:00
parent 7a417a591d
commit e64fecc063

View File

@ -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