Menu

#530 [Tor mode] Route node's requests through Tor as well if possible, or switch them off.

open
nobody
2023-11-25
2023-11-25
Anonymous
No

Originally created by: 00000o1

see:

1|basic-bb | } TypeError: fetch failed
1|basic-bb |     at Object.fetch (node:internal/deps/undici/undici:11372:11)
1|basic-bb |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
1|basic-bb |   cause: Error: getaddrinfo ENOTFOUND eweiibe6tdjsdprb4px6rqrzzcsi22m4koia44kc5pcjr7nec2rlxyad.onion
1|basic-bb |       at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) {
1|basic-bb |     errno: -3008,
1|basic-bb |     code: 'ENOTFOUND',
1|basic-bb |     syscall: 'getaddrinfo',
1|basic-bb |     hostname: 'eweiibe6tdjsdprb4px6rqrzzcsi22m4koia44kc5pcjr7nec2rlxyad.onion'
1|basic-bb |   }
1|basic-bb | }

we are fetching hosts to acquire favicon when not otherwise available. But not only do these net requests fail when on tor, they could expose server IP to random sites.

How to do this?

One possible way is: https://www.npmjs.com/package/tor-request

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.