tor-router/lib/hosts.js
Zachary Boyd 9449a59e4d make over
2015-12-29 00:12:46 -05:00

7 lines
221 B
JavaScript

const shell = require('shelljs');
const HOSTS = shell.cat(process.cwd()+'/config/hosts')
.split("\n")
.filter((host) => (host[0] !== '#') && host.trim().length)
.map((line) => line.split(' '));
module.exports = HOSTS;