This pull request introduces Tor proxy integration into our network layer, enabling the application to access .onion websites through a SOCKS5 proxy. This is a crucial update for our cloner functionality, allowing it to interact with and clone content from .onion domains.
Summary
Added TOR_PROXY_CONFIG in torConfig.ts to define the Tor proxy host and port configuration.
Integrated SocksProxyAgent from the socks-proxy-agent package across all network service functions in onionWebsiteServices.ts to route HTTP requests through the Tor proxy.
Updated functions getOnionWebsites, getOnionWebsite, createOnionWebsite, updateOnionWebsite, and deleteOnionWebsite to include the proxy agent in their requests, enabling them to access .onion websites.
Fixed a minor issue in createOnionWebsite where the agent variable was mistakenly duplicated in the request parameters.
Files Modified
src/network/onionWebsiteServices.ts: Integrated Tor proxy support for accessing .onion websites.
src/network/torConfig.ts: New file containing the Tor proxy configuration.
Directories
src/network/: Contains the updated network service and the new Tor configuration file.
Fixes #1.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback: 👍
Description
This pull request introduces Tor proxy integration into our network layer, enabling the application to access .onion websites through a SOCKS5 proxy. This is a crucial update for our cloner functionality, allowing it to interact with and clone content from .onion domains.
Summary
TOR_PROXY_CONFIG
intorConfig.ts
to define the Tor proxy host and port configuration.SocksProxyAgent
from thesocks-proxy-agent
package across all network service functions inonionWebsiteServices.ts
to route HTTP requests through the Tor proxy.getOnionWebsites
,getOnionWebsite
,createOnionWebsite
,updateOnionWebsite
, anddeleteOnionWebsite
to include the proxy agent in their requests, enabling them to access .onion websites.createOnionWebsite
where theagent
variable was mistakenly duplicated in the request parameters.Files Modified
src/network/onionWebsiteServices.ts
: Integrated Tor proxy support for accessing .onion websites.src/network/torConfig.ts
: New file containing the Tor proxy configuration.Directories
src/network/
: Contains the updated network service and the new Tor configuration file.Fixes #1.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.