Mowje / node-ths

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

change hash matching algorithm #9

Closed mattcollier closed 9 years ago

mattcollier commented 9 years ago

The current hash matching algorithm fails with latest tor build from github (2.7.0-alpha). This new one works.

Edit: works with tor v0.2.5.10 as well.

You can see here that the '16:' is in fact hard coded into the hash: https://github.com/torproject/tor/blob/master/src/or/main.c#L2813

abenmrad commented 9 years ago

Good idea. And I checked the code base of v0.2.4.26 (an older stable release); your code should work as well with it. Merging! :)