Commit 366f4903222de8b7b0c4899713d3fe609bf252ab

Authored by Adhidarma Hadiwinoto
1 parent c7967b3399
Exists in master

use strict;

Showing 1 changed file with 7 additions and 5 deletions Inline Diff

1 var config = require(__dirname + '/config.json'); 1 "use strict";
2 var redbird = require('redbird')(config.server_options);
3 2
4 var hostsCount = config.hosts.length; 3 const config = require(__dirname + '/config.json');
5 for (var i=0; i < hostsCount; i++) { 4 const redbird = require('redbird')(config.server_options);
6 var host = config.hosts[i] 5
6 const hostsCount = config.hosts.length;
7 for (let i=0; i < hostsCount; i++) {
8 let host = config.hosts[i]
7 if (!host.disable) { 9 if (!host.disable) {
8 redbird.register(host.host, host.target); 10 redbird.register(host.host, host.target);
9 } 11 }
10 } 12 }