You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like a legit way to use Tor proxy, but it will lead to RangeError (see the comment in accessInternetThroughTor above).
If we run an external Tor process in background listensing TCP port, say 9050, and we pass the port number to the createProxyClient invocation, all these codes work. No RangeError would appear. I've tried this on Linux, building the Flutter app as a Linux GUI application, and have this observation.
On Android the same error happens, if we use the port number returned from startTor ( See the code above).
I don't know it's a bug in package socks5_proxy or tor. When use an external Tor, all codes work. So it looks like a bug in package tor. On the other hand, the RangeError is thrown from package socks5_proxy.
The text was updated successfully, but these errors were encountered:
To recreate this bug, we need to import
socks5_proxy
andtor
:Assume we have these 2 code lines in function
main
:The functions
startTor
andcreateProxyClient
are implemented as follows:To use the
httpClient
variable, we have these 2 invocations inmain
:The function
accessInternetThroughTor
is implemented as follows:It looks like a legit way to use Tor proxy, but it will lead to
RangeError
(see the comment inaccessInternetThroughTor
above).If we run an external Tor process in background listensing TCP port, say 9050, and we pass the port number to the
createProxyClient
invocation, all these codes work. NoRangeError
would appear. I've tried this on Linux, building the Flutter app as a Linux GUI application, and have this observation.On Android the same error happens, if we use the port number returned from
startTor
( See the code above).I don't know it's a bug in package
socks5_proxy
ortor
. When use an external Tor, all codes work. So it looks like a bug in packagetor
. On the other hand, theRangeError
is thrown from packagesocks5_proxy
.The text was updated successfully, but these errors were encountered: