Skip to content
This repository has been archived by the owner on Jan 30, 2022. It is now read-only.

Allow localhost development in a dev mode #25

Open
reecer62 opened this issue Oct 17, 2018 · 1 comment
Open

Allow localhost development in a dev mode #25

reecer62 opened this issue Oct 17, 2018 · 1 comment

Comments

@reecer62
Copy link
Contributor

No description provided.

@lannonbr
Copy link
Member

For reference, the following code block here are the reason for this issue:

NodeTalks/talks-ctrl.js

Lines 35 to 38 in 7a94576

if(!allowedIP(req.clientIp)) {
res.sendStatus(500);
return;
}

It is a simple check saying if the ip of the user is not in Clarkson University's subnet to return a 500 error code back.

A solution I suggested was to append these conditionals to only run when it is in a production environment so if you are doing local testing it would just skip it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants