Update src/libpoketube/init/pages-api.js

This commit is contained in:
ashley 2025-10-07 16:16:14 +02:00
parent edaa64f121
commit 31c3aebcdd

View File

@ -54,7 +54,7 @@ module.exports = function (app, config, renderTemplate) {
});
app.get("/api/geo", async function (req, res) => {
app.get("/api/geo", async function (req, res) {
try {
let ip =
req.headers["x-forwarded-for"]?.split(",")[0].trim() ||