Skip to content

Commit e64fecc

Browse files
committed
parseUdpRequest(): throw on invalid packet
1 parent 7a417a5 commit e64fecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parse_udp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function parseUdpRequest (msg, rinfo) {
5757
throw new Error('multiple info_hash scrape not supported')
5858
}
5959
} else {
60-
return null
60+
throw new Error('Invalid action in UDP packet: ' + params.action)
6161
}
6262

6363
return params

0 commit comments

Comments
 (0)