Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -46,7 +46,7 @@ app.post('/hook', function (req, res) { | ... | @@ -46,7 +46,7 @@ app.post('/hook', function (req, res) { |
46 | } | 46 | } |
47 | } | 47 | } |
48 | if (arr.length != 0) { | 48 | if (arr.length != 0) { |
49 | - var num = Math.floor(Math.random() * arr.length); | 49 | + var num = arr[Math.floor(Math.random() * arr.length)]; |
50 | request.post( | 50 | request.post( |
51 | { | 51 | { |
52 | url: TARGET_URL, | 52 | url: TARGET_URL, | ... | ... |
-
Please register or login to post a comment