Mowje / node-ths

Node.js module to create tor hidden services and manage them programmatically
MIT License
36 stars 8 forks source link

User specified torCommand is not utilized in passhash.js #8

Closed mattcollier closed 9 years ago

mattcollier commented 9 years ago

if this:

var
  thsBuilder = require('node-ths'),
  ths = new thsBuilder(dataDir),
  torPath = __dirname + '/tor/tor';

ths.setTorCommand(torPath);
ths.start();

passhash.js still uses hard coded command name: https://github.com/Mowje/node-ths/blob/master/passhash.js#L21

I'll work on a fix for this.

mattcollier commented 9 years ago

Actually, I see that passhash is accepting a custom command: https://github.com/Mowje/node-ths/blob/master/passhash.js#L3

It's just not getting sent: https://github.com/Mowje/node-ths/blob/dev/index.js#L395

mattcollier commented 9 years ago

Yes it is: https://github.com/Mowje/node-ths/blob/dev/index.js#L448

the problem I'm having must be caused by something else....