fixes error with create instnaces

This commit is contained in:
Zachary Boyd 2017-03-22 17:25:18 -04:00
parent 41d1391f76
commit bf739cfd2d
2 changed files with 3 additions and 3 deletions

View file

@ -12,8 +12,6 @@ ENV SOCKS_PORT 9050
ENV CONTROL_PORT 9077
ENV INSTANCES 3
ENV PATH $PATH:/app/bin
ADD http://public.zacharyboyd.nyc/columbia-ubuntu-sources.list /etc/apt/sources.list

View file

@ -22,7 +22,9 @@ class ControlServer {
socket.on('createSOCKSServer', this.createSOCKSServer.bind(this));
socket.on('createDNSServer', this.createDNSServer.bind(this));
socket.on('createInstances', (instances, callback) => { this.torPool.create(instances, callback); });
socket.on('createInstances', (instances, callback) => { this.torPool.create(instances, (error, instances) => {
callback(error)
}); });
socket.on('newIps', () => { this.torPool.new_ips(); });
socket.on('nextInstance', () => { this.torPool.next(); });
socket.on('closeInstances', () => { this.torPool.exit(); });