Closed uniqx closed 1 year ago
Read the docs, Luke!
https://github.com/tladesignz/IPtProxy/blob/master/IPtProxy.go/IPtProxy.go#L135-L207
The proxy
argument is for an upstream proxy behind Obfs4proxy
.
IPtProxy.startObfs4Proxy("DEBUG", true, false, null)
The bridge line goes into the Tor configuration:
tor --UseBridges 1 --ClientTransportPlugin "obfs4 socks5 127.0.0.1:[IPtProxy.obfs4Port()]" --Bridge "obfs4 87.123.123.123:123 0B6892C2DCD1FE8C1E7CBEA202BCEBECBDE47ECB cert=dZaWyaKA2a26abHSMqPKaE8aPGmeid4FUHGYJMzs9onWMjUuZKotKRYlMIRStVdqKBdOVw iat-mode=0"
I gave IPtProxy a try on Android. Here's the relevant snippet I came up with:
When I execute it, the app crashes. The error message doesn't contain any hint on what's going wrong. (I get the same behavior when I neglect to call
setStateLocation
) Here's the logs from when I run this snippet of code in Android emulator (API 31):