Commit 366f4903222de8b7b0c4899713d3fe609bf252ab
1 parent
c7967b3399
Exists in
master
use strict;
Showing 1 changed file with 7 additions and 5 deletions Side-by-side Diff
index.js
1 | -var config = require(__dirname + '/config.json'); | |
2 | -var redbird = require('redbird')(config.server_options); | |
1 | +"use strict"; | |
3 | 2 | |
4 | -var hostsCount = config.hosts.length; | |
5 | -for (var i=0; i < hostsCount; i++) { | |
6 | - var host = config.hosts[i] | |
3 | +const config = require(__dirname + '/config.json'); | |
4 | +const redbird = require('redbird')(config.server_options); | |
5 | + | |
6 | +const hostsCount = config.hosts.length; | |
7 | +for (let i=0; i < hostsCount; i++) { | |
8 | + let host = config.hosts[i] | |
7 | 9 | if (!host.disable) { |
8 | 10 | redbird.register(host.host, host.target); |
9 | 11 | } |