fix(route): nhentai (#12566)

This commit is contained in:
Tony 2023-05-27 17:04:15 +03:00 committed by GitHub
parent 4e2c3efe2d
commit d1a11a40b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ const getCookie = async (username, password, cache) => {
};
const gotByIp = (url, ...options) =>
got(url.replace(/^https:\/\/nhentai.net\//, 'http://138.2.77.198:3002/'), {
// credit: https://github.com/sinkaroid/jandapress/pull/23
got(url.replace(/^https:\/\/nhentai.net\//, 'http://129.150.63.211:3002/'), {
...options,
headers: {
host: 'nhentai.net',