From e64fecc063b896ae3286420bcdced571ec9e572b Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 11 Dec 2014 16:19:08 +0100 Subject: [PATCH] parseUdpRequest(): throw on invalid packet --- lib/parse_udp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse_udp.js b/lib/parse_udp.js index 2c1ee8e..7e5ccdf 100644 --- a/lib/parse_udp.js +++ b/lib/parse_udp.js @@ -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