Do not use array.includes to support some older versions of node

This commit is contained in:
Andris Reinman 2016-12-08 13:49:31 +02:00
parent 005941731b
commit 37b0ac9aec
3 changed files with 3 additions and 3 deletions

View file

@ -111,7 +111,7 @@ module.exports = callback => {
let hosts;
if (typeof config.verp.host === 'string' && config.verp.host) {
hosts = config.verp.host.trim().split(',').map(host => host.trim()).filter(host => host.trim());
if (hosts.includes('*') || hosts.includes('all')) {
if (hosts.indexOf('*') >= 0 || hosts.indexOf('all') >= 0) {
hosts = [false];
}
} else {