()
| 382 | // late configuration |
| 383 | if(typeof config.hosts === 'function') { |
| 384 | var dynamicHosts = function() { |
| 385 | var future = new Future(); |
| 386 | |
| 387 | config.hosts(function(result) { |
| 388 | future.return(result); |
| 389 | }, context); |
| 390 | |
| 391 | return future; |
| 392 | }; |
| 393 | |
| 394 | logger.info('Running dynamic hosts configuration'); |
| 395 |