Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Run Antidote over Tor #292

Open
bucky0970 opened this issue Mar 23, 2017 · 5 comments
Open

Run Antidote over Tor #292

bucky0970 opened this issue Mar 23, 2017 · 5 comments

Comments

@bucky0970
Copy link

I already run up a Tor proxy in app, how to use the proxy make a call?

@dvor dvor added the question label Mar 23, 2017
@dvor
Copy link
Member

dvor commented Mar 23, 2017

I'm not sure how Tox proxy works on iOS, I need to investigate that.

Currently in Antidote there is no configuration for proxy settings.

@dvor
Copy link
Member

dvor commented Mar 23, 2017

@bucky0970 can you please share a link to Tor proxy app so I can check and test it?

@bucky0970
Copy link
Author

bucky0970 commented Mar 24, 2017

Thanks for your reply~
I use CPAProxy , after proxy start up, you can get a socks5 proxy ip and port.
And I found in (Project Navigator)Antidote/Pods/Pods/toxcore/tox_api.m line:67

void tox_options_default(struct Tox_Options *options)
{
    if (options) {
        struct Tox_Options default_options = { 0 };
        *options = default_options;
        tox_options_set_ipv6_enabled(options, true);
        tox_options_set_udp_enabled(options, true);
        tox_options_set_proxy_type(options, TOX_PROXY_TYPE_NONE );
        tox_options_set_hole_punching_enabled(options, true);
        tox_options_set_local_discovery_enabled(options, true);
    }
}

It seems to be able set proxy, It has 3 options. TOX_PROXY_TYPE_NONE, TOX_PROXY_TYPE_SOCKS5 and TOX_PROXY_TYPE_HTTP, but I have no idea where to config proxy ip and port.
I saw Tox wiki, in command line, Tox can communicate over Tor.(wiki link).

After I install CPAProxy into Antidote, It says "Module 'CocoaAsyncSocket' not found". After Google, they say I have to add "use_frameworks!" in pod file ...
But when I add "use_frameworks!", Antidote will build fail, It become a weird situation...so far I can't run CPAProxy in Antidote.

@dvor
Copy link
Member

dvor commented Mar 27, 2017

Yes, it would be nice to investigate on including CPAProxy (or any other) to Antidote.

@dvor dvor added enhancement and removed question labels Mar 27, 2017
@dvor dvor changed the title Can Antidote call contact over Tor? Run Antidote over Tor Mar 27, 2017
@hsn10
Copy link

hsn10 commented Oct 21, 2018

For my use pattern it would be enough to add support for SOCKS 5. As I understand from previous post, there is already SOCKS 5 support, just GUI is missing for its configuration.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants