mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 00:58:58 +01:00
add verified instance :3
This commit is contained in:
parent
d056563324
commit
a6290f597f
1 changed files with 8 additions and 2 deletions
|
@ -186,10 +186,10 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const isvld = await core.isvalidvideo(v);
|
const isvld = await core.isvalidvideo(v);
|
||||||
if (!v) res.redirect("/");
|
if (!v) res.redirect("/");
|
||||||
|
|
||||||
|
|
||||||
const u = await media_proxy(v);
|
const u = await media_proxy(v);
|
||||||
|
|
||||||
var secure;
|
var secure;
|
||||||
|
var verify;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
req.hostname == "poketube.fun" ||
|
req.hostname == "poketube.fun" ||
|
||||||
|
@ -202,6 +202,12 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
secure = false;
|
secure = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (req.hostname == "pt.zzls.xyz") {
|
||||||
|
verify = true;
|
||||||
|
} else {
|
||||||
|
verify = false;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const info = await modules.fetch("http://ip-api.com/json/");
|
const info = await modules.fetch("http://ip-api.com/json/");
|
||||||
const jj = await info.text();
|
const jj = await info.text();
|
||||||
|
@ -245,7 +251,6 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
if (d === "[object Object]") {
|
if (d === "[object Object]") {
|
||||||
var d = false;
|
var d = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
renderTemplate(res, req, "poketube.ejs", {
|
renderTemplate(res, req, "poketube.ejs", {
|
||||||
color: data.color,
|
color: data.color,
|
||||||
|
@ -257,6 +262,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
e,
|
e,
|
||||||
a,
|
a,
|
||||||
k,
|
k,
|
||||||
|
verify,
|
||||||
secure,
|
secure,
|
||||||
process,
|
process,
|
||||||
sha384,
|
sha384,
|
||||||
|
|
Loading…
Reference in a new issue