brackets may fix this?

This commit is contained in:
not-nullptr 2024-03-19 19:07:04 +00:00
parent 63a89c3b5f
commit 300cb18c1e

View file

@ -57,7 +57,7 @@ export async function POST({ request, getClientAddress }) {
}, },
], ],
maxPlayers: body.maxPlayers, maxPlayers: body.maxPlayers,
ip: `${opts.ip || request.headers.get("CF-Connecting-IP") || request.headers.get("X-Forwarded-For") || borkedIp.includes("127.0.0.1") ? "127.0.0.1" : borkedIp}:${body.port}`, ip: `${opts.ip || request.headers.get("CF-Connecting-IP") || request.headers.get("X-Forwarded-For") || (borkedIp.includes("127.0.0.1") ? "127.0.0.1" : borkedIp)}:${body.port}`,
host: user, host: user,
hasPassword: body.hasPassword || false, hasPassword: body.hasPassword || false,
}); });