add proxyurl

This commit is contained in:
ashley 2024-05-01 06:41:06 +00:00
parent b8dad3e52b
commit ff45b70bcd

View file

@ -116,6 +116,7 @@ module.exports = function (app, config, renderTemplate) {
const random = splash[Math.floor(Math.random() * splash.length)]; const random = splash[Math.floor(Math.random() * splash.length)];
const browser = req.useragent.browser; const browser = req.useragent.browser;
const isOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox"; const isOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox";
var proxyurl = config.p_url;
const secure = [ const secure = [
"poketube.fun", "poketube.fun",
@ -136,6 +137,7 @@ module.exports = function (app, config, renderTemplate) {
secure, secure,
verify, verify,
isOldWindows, isOldWindows,
proxyurl,
random random
}); });
}; };