[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #7944 [Flashproxy]: Standalone flash proxy
#7944: Standalone flash proxy
-------------------------+--------------------------------------------------
Reporter: akrey | Owner: dcf
Type: enhancement | Status: needs_review
Priority: normal | Milestone:
Component: Flashproxy | Version:
Keywords: | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
Comment(by arlolra):
> Can you explain this code?
Node.js doesn't have the equivalent of Rhino's `load()`, where code gets
included in the calling script. It does have `require()` but that follows
the CommonJS pattern of explicitly exporting a module.
Rather than make any changes to flashproxy.js, we just read the file and
evaluate it.
> What gets modified otherwise?
All the above environment variables in flashproxy-node.js could be
conditionally defined in flashproxy.js at the top, but I thought it
cleaner to separate the code.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7944#comment:27>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs