fixes error with create instnaces
This commit is contained in:
parent
41d1391f76
commit
bf739cfd2d
|
@ -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
|
||||
|
|
|
@ -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(); });
|
||||
|
|
Loading…
Reference in a new issue