mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 17:57:52 +01:00
so basically in germany you can eat food
This commit is contained in:
parent
d3412cb114
commit
f0d7e9d3c7
1 changed files with 11 additions and 6 deletions
|
@ -108,7 +108,6 @@ function IsInArray(array, id) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
module.exports = function (app, config, renderTemplate) {
|
module.exports = function (app, config, renderTemplate) {
|
||||||
app.get("/encryption", async function (req, res) {
|
app.get("/encryption", async function (req, res) {
|
||||||
var v = req.query.v;
|
var v = req.query.v;
|
||||||
|
@ -174,13 +173,19 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const ip = JSON.parse(jj);
|
const ip = JSON.parse(jj);
|
||||||
|
|
||||||
const isvld = await core.isvalidvideo(v);
|
const isvld = await core.isvalidvideo(v);
|
||||||
|
if (!v) res.redirect("/");
|
||||||
var secure;
|
var secure;
|
||||||
|
|
||||||
if(req.hostname == "poketube.fun" || req.hostname == "poketube.site" || req.hostname == "poketube.online" || req.hostname == "poketube.xyz" || req.hostname == "watch.poketalebot.com") {
|
if (
|
||||||
secure = true
|
req.hostname == "poketube.fun" ||
|
||||||
|
req.hostname == "poketube.site" ||
|
||||||
|
req.hostname == "poketube.online" ||
|
||||||
|
req.hostname == "poketube.xyz" ||
|
||||||
|
req.hostname == "watch.poketalebot.com"
|
||||||
|
) {
|
||||||
|
secure = true;
|
||||||
} else {
|
} else {
|
||||||
secure = false
|
secure = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isvld) {
|
if (isvld) {
|
||||||
|
|
Loading…
Reference in a new issue