Foundation-Devices / tor

Tor plugin for Flutter
https://pub.dev/packages/tor
MIT License
18 stars 9 forks source link

How to configure the plugin? #51

Open robert-virkus opened 3 weeks ago

robert-virkus commented 3 weeks ago

Hi tor-team, right now I can start the Tor instance on iOS but I am unable to lookup addresses such as https://icanhazip.com/ or https://check.torproject.org in the example app.

The example app has the following todo about the configuration:

SocksTCPClient.assignToHttpClient(client, [
   ProxySettings(InternetAddress.loopbackIPv4,
        Tor.instance.port,
         password:
               null), // TODO Need to get from tor config file.
]);

How can I specify such a config file and what values can I define there?

Many thanks in advance!

sneurlax commented 1 week ago

This will be handled at a lower level: in the embedded Rust crate in the rust directory

Edit: maybe https://tpo.pages.torproject.net/core/doc/rust/arti_client/config/struct.TorClientConfig.html will help

the example should work on iOS however, do you get any pertinent error messages logged? I will try to find time to test on iOS sometime.

Edit: I will mention that we are currently using this on iOS successfully