diff --git a/lib/util/getAuthenticatedUser.js b/lib/util/getAuthenticatedUser.js index 374ef1f4a..e602169cd 100644 --- a/lib/util/getAuthenticatedUser.js +++ b/lib/util/getAuthenticatedUser.js @@ -19,7 +19,7 @@ exports.optional = ['jar'] exports.func = async function (args) { const jar = args.jar const httpOpt = { - url: '//users.roblox.com/v1/users/authenticated', + url: `//users.${process.env['PROXY'] || "roblox.com"}/v1/users/authenticated`, options: { method: 'GET', followRedirect: false, diff --git a/lib/util/getGeneralToken.js b/lib/util/getGeneralToken.js index 1d2fcc245..bbda90972 100644 --- a/lib/util/getGeneralToken.js +++ b/lib/util/getGeneralToken.js @@ -26,7 +26,7 @@ function getGeneralToken (jar) { } const httpOpt = { // This will never actually sign you out because an X-CSRF-TOKEN isn't provided, only received - url: '//auth.roblox.com/v2/logout', // REQUIRES https. Thanks for letting me know, ROBLOX... + url: `//auth.${process.env['PROXY'] || "roblox.com"}/v2/logout`, // REQUIRES https. Thanks for letting me know, ROBLOX... options: { resolveWithFullResponse: true, method: 'POST',