Skip to content

Commit

Permalink
Merge pull request #1 from marc2332/patch-1
Browse files Browse the repository at this point in the history
Send the Request instance as second argument
  • Loading branch information
denyncrawford authored Apr 1, 2021
2 parents 23df367 + 4f81aab commit 348e47d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class Dropper extends EventEmitter {
if (!c?._socket?.isClosed) c?._socket?.send(data_send)
})
})
const allowConnect = this.emit("connection", client);
const allowConnect = this.emit("connection", client, req);
if (allowConnect !== undefined && !allowConnect) {
await client.close(1002, "Access Denied");
}
Expand Down

0 comments on commit 348e47d

Please sign in to comment.