added current flat ip

This commit is contained in:
Martin Donnelly 2019-09-06 21:54:22 +01:00
parent e8ea83136c
commit 312d1c7310

View File

@ -28,9 +28,11 @@ const cache = apicache.middleware;
// app.use(cache('15 minutes'));
const ips = ['212.71.255.44', '82.35.75.161', '54.146.189.113', '52.90.194.191'];
const ips = ['212.71.255.44', '82.35.75.161', '54.146.189.113', '52.90.194.191', '52.71.167.171'];
// 54.146.189.113, 52.90.194.191 is for ifttt
ips.push('82.46.161.156'); // flat
// 54.146.189.113, 52.90.194.191, 52.71.167.171 is for ifttt
const complexUrls = new Map();
@ -125,7 +127,7 @@ function getUrl (req, res) {
return;
}
if (theUrl !== firstUrl)
if (theUrl !== firstUrl)
logger.info(`>>> Using ${theUrl} instead of ${firstUrl}`);
const options = urlparser.parse(theUrl);