Skip to content

Commit

Permalink
fixed checkOnline over https
Browse files Browse the repository at this point in the history
  • Loading branch information
yzabeast1 committed Oct 14, 2024
1 parent 775c2c2 commit 0ca072b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ try {
httpsApp.post('/exportCraftingTweak', (req, res) => {
makePackRequest(req, res, 'crafting')
});
httpsApp.get('/checkOnline', (req, res) => { res.status(200).send('Online') })
httpsApp.get('*', (req, res) => {
res.redirect(funnyurl);
console.log("Someone accesssed the IP. Rickrolled them instead.")
});
httpsApp.get('/checkOnline', (req, res) => { res.status(200).send('Online') })
httpsApp.post('', (req, res) => {
res.redirect(funnyurl);
console.log("Rick Roll attempt, but POST request meant they know what they are doing.")
Expand Down

0 comments on commit 0ca072b

Please sign in to comment.