Skip to content

Commit

Permalink
feat: skip chad send on my ip
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Sep 26, 2023
1 parent 44adf1d commit d2ad2f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/app.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export function skipOnMyIp(req, _res) {

export function getHealthCheck(req, res) {
const ip = requestIp.getClientIp(req);
Chad.flex(`someone hit a health check from ${ip}`);
if (ip != MY_IP) {
Chad.flex(`someone hit a health check from ${ip}`);
}
res.status(200).json({
msg: 'ok',
});
Expand Down

0 comments on commit d2ad2f5

Please sign in to comment.