Open Sp3ctr3 opened 10 years ago
What type of file should it be?
@ZDroid We just need the proxying to work and the proxy address should be modifiable.
Ok. ;)
@ZDroid Can you help with this task? If so, I'll assign it to you.
I can, but need some research.
My idea:
.openfauxrc
, or .openfaux.json
(config should have JSON format).@ZDroid Look into FoxyProxy as sample code for Firefox plugins and the file API should work.
The final solution is that the extension should be able to switch the proxy address.
I didn't see an option to look at the source code of FoxyProxy.
@juzerali download the xpi and unzip it.
Did the original question ask to provide a configuration for changing the ip address of the server which will act as a proxy? It seems FoxyProxy doesn't read configuration from a file (from their UI). It provides a UI for entering the configuration and persists them using the persistence mechanism provided by the browser's extension API.
Ok, then use inputs. File input was my idea. :O
2013/12/30 Juzer Ali notifications@github.com
Did the original question ask to provide a configuration for changing the ip address of the server which will act as a proxy? It seems FoxyProxy doesn't read configuration from a file (from their UI). It provides a UI for entering the configuration and persists them using the persistence mechanism provided by the browser's extension API.
— Reply to this email directly or view it on GitHubhttps://github.com/openfaux/openfaux-client/issues/16#issuecomment-31342067 .
Zlatan Vasović - ZDroid
What type will the proxy server be? http/https/socks5/socks4? Or some of them?
ps. which browser is this issue related to? chrome or firefox?
First priority would be an http proxy. This is already functioning. We are hoping to get TLS working on it soon.
Ok then.
2013/12/30 Yashin Mehaboobe notifications@github.com
First priority would be an http proxy. This is already functioning. We are hoping to get TLS working on it soon.
— Reply to this email directly or view it on GitHubhttps://github.com/openfaux/openfaux-client/issues/16#issuecomment-31343167 .
Zlatan Vasović - ZDroid
Lemme update you all with my progress and tell you what is working now. This is for firefox jetpack add-on. I hard coded a proxy address and port number. When the OpenFaux button is clicked, i.e. OpenFaux Activated, proxy set by us is used. And yes, we better keep the add-on Deactivated by default. When the button is clicked again, proxy is disabled.
I have made it just for http right now. Easy to make for other protocols too, just add a few more lines for each protocol. I am doing cleanup and writing code to enable the user to set the proxy address and port number in the add-on manager(Firefox again ;) ).
Let me know if anything I mentioned above is going away from what we need.
@darkowlzz Good job.
Sorry for the delay. PR https://github.com/openfaux/openfaux-client/pull/36 sent! Please try it out and file improvements.
OpenFaux server already supports proxying. Add a feature that would read proxy IP from a configuration file, change the proxy to that address when the add-on is activated and reset it to normal configuration when it is deactivated. Optionally it could also have the ability to set the proxy by prompting the user for the address.