Commit graph

37 commits

Author SHA1 Message Date
Zachary Boyd c1b7a124c4
Merge branch 'master' into upstream_master 2019-11-23 22:39:55 -05:00
dependabot[bot] bf0327ad66
Bump merge from 1.2.0 to 1.2.1
Bumps [merge](https://github.com/yeikos/js.merge) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/yeikos/js.merge/releases)
- [Commits](https://github.com/yeikos/js.merge/compare/v1.2.0...v1.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-22 03:26:08 +00:00
Zachary Boyd fbdbf525df
Added a entrypoint file so the node.js process is not the root process, so it responds to SIGINT calls (Ctrl+C). 2019-11-21 22:25:01 -05:00
Roman Brunner f89e4b20c5 Pool getPort race condition
It appears that when requesting multiple ports asynchronously,
that a port is given out multiple times, which crashes single
Tor processes. Such a crash brings down the whole system as of
now, which might or might not be desired.
This is caused by a race condition on the port numbers. This
commit fixes the issue if a number of Tor instances for the pool
is requested. If the pool is populated with an array of definitions,
the user has to make sure to include the ports in the definition,
otherwise the race condition still persists. If this should still be
allowed is up for discussion or if a check should be included in the
TorPool create function.
2019-11-21 16:27:48 +01:00
Zachary Boyd 76ab9ae829 Fixes #11 2019-01-15 12:11:49 -05:00
Zachary Boyd aca5498435 updates multi-rpc 2018-12-29 11:14:05 -08:00
Zachary Boyd 5195b576be Updatets to multi-rpc to 1.4.0 2018-12-23 21:17:07 -05:00
Zachary Boyd 08c0b7687e Updates multi-rpc 2018-12-23 20:56:55 -05:00
Zachary Boyd 089e9bbad1 updates multi-rpc 2018-12-16 17:53:18 -05:00
Zachary Boyd c1dfa465d5 Updates multi-rpc 2018-12-14 19:02:39 -05:00
Zachary Boyd 7b90edabd0 Prevents errors that occur when connecting to the destination in the SOCKS Proxy and HTTP Proxy from crashing the applications 2018-10-15 17:36:32 -04:00
Zachary Boyd 1261821ab3 Updates mutli-rpc 2018-09-26 22:37:17 -04:00
Zachary Boyd 459aef5ca3 Updates multi-rpc 2018-09-25 21:25:06 -04:00
Zachary Boyd 6389835989 updates multi-rpc version 2018-09-25 12:52:13 -04:00
Zachary Boyd 419e78b727 Replaces 'jrpc2' with 'multi-rpc'. No application or API changes. 2018-09-25 12:40:15 -04:00
Zachary Boyd 3a869f46bf fixes a small bug in tests 2018-09-15 02:27:19 -04:00
Zachary Boyd 0b82ad9cb5 finishes documentation. minor bug fixes and some code clean-up 2018-09-14 20:09:36 -04:00
Zachary Boyd 5b598f612a Adds jsdoc for TorPool. 2018-09-13 22:35:40 -04:00
Zachary Boyd 4aec5c3d0f Move most of the README to the wiki. Add grunt and jsdoc and documentation for TorProcess 2018-09-13 15:00:51 -04:00
Zachary Boyd 998185d31e Adds methods to the RPC Interface to interact with groups. Adds tests for those methods 2018-09-11 02:48:56 -04:00
Zachary Boyd c43e6cf14f Finishes proxying through a specific instance 2018-09-10 13:03:02 -04:00
Zachary Boyd 4553bcc82b Replaced socksv5 with a version that supports user context. Locks down the versions of some packages 2018-09-09 22:26:55 -04:00
Zachary Boyd c379350de7 The control server can now accept websocket connections. All servers can be bound to a specific hostname 2018-09-09 22:13:39 -04:00
Zachary Boyd a571d2caf9 removes 'async' as a dependency. adds npm badge 2018-09-09 17:03:43 -04:00
Zachary Boyd 1c29679024 Splits the mocha tests into individual files 2018-09-09 03:00:29 -04:00
Zachary Boyd d1265253d2 Uses bluebird for Promises. All functions in TorProcess return Promises instead of callbacks 2018-09-09 00:44:39 -04:00
Zachary Boyd 723a227f26 replaces eventemitter2 with eventemitter3 2018-09-09 00:28:43 -04:00
Zachary Boyd c1515969b4 Adds a sepreate file for a silent winston logger to be used whenever a logger is not specified. Replaces all callbacks with Promises in TorPool. 2018-09-09 00:25:46 -04:00
Zachary Boyd 56b34f2133 Launches tor with the '--quiet' flag when attempting to get the hashed password for the control port. Uses 'os.EOL' instead of '\n' when creating the config file for compatibility with windows 2018-08-10 15:43:28 -04:00
Zachary Boyd 8abdd0b5c7 Upgrade mocha 2018-08-10 01:03:15 -04:00
Zachary Boyd 7b89981059 Uses a 'null' transport if 'logLevel' is set to 'null' 2018-08-09 15:16:45 -04:00
Zachary Boyd 4bc4c15dd7 Connects to the Tor instance via the control port when the instance starts 2018-05-10 21:17:00 -07:00
Zachary Boyd b3700e0202 Bundles the Tor executable 2018-05-09 22:42:30 -07:00
Zachary Boyd 6878081797 Allows for multiple types of load-balancing methods to be selected and allows for instances to be load-balanced by weight. Allows for instances to be named. Fixes bug with instance cleanup 2018-05-09 21:09:38 -07:00
Zachary Boyd 369ffa5d4f Allows to default config of the Tor instances to be specified at startup and during runtime. Allows for the configuration of individual Tor instances to be specified at startup and during runtime 2018-05-09 18:15:58 -07:00
Zachary Boyd b3546799da Switches from "commander" to "nconf/yargs" for configuration management and argv/env variable processing 2018-05-09 15:31:58 -07:00
Zachary Boyd 3b91c9a5b5 Add package-lock.json 2018-05-06 22:41:13 -07:00