orbot icon indicating copy to clipboard operation
orbot copied to clipboard

17 RC1: Bug: "Custom bridge" can only work after using "Get bridge from Tor"

Open wreps8Owt opened this issue 1 year ago • 4 comments

Unable to type captcha in "Get bridge from Tor", and although "obfs4 <ip>:<port> <fingerprint> cert=<cert> iat-mode=<mode>" can be typed or pasted into "Custom bridge" as previous versions, tapping "Connect" button has no effect. Among bridges, only snowflake currently works.

wreps8Owt avatar May 26 '23 02:05 wreps8Owt

unable to type?

the captcha appears and text box, but you can't enter anything?

What device/OS/language please?

n8fr8 avatar May 26 '23 15:05 n8fr8

unable to type?

the captcha appears and text box, but you can't enter anything?

What device/OS/language please?

Sorry, typing in "Get bridge from Tor" actually works. It is just slow for the first time.

However, the real problem is, "Custom bridges" can only work if it has already been selected when tapping "config", that is, if we tried snowflake during last connection, so "snowflake" is selected, no matter what is typed in "Custom bridge", tapping the "connect" button will launch snowflake. In order to use custom bridges, we should use "Get bridge from Tor" first to make "Custom bridges" selected. Only after that we could replace fetched bridges with custom bridges and launch them.

wreps8Owt avatar May 27 '23 15:05 wreps8Owt

I'm faced with the same problem. I can not keep "Custom bridges" selected. Every time the bottom sheet is dismissed, the config is reverted to previous selection. What's worse, "Get bridge from Tor" does not work for me because the captcha never show up.

I'm using Orbot 17.0.0-RC-1-tor.0.4.7.11 on LineageOS 20.

golfvoyager1 avatar Sep 23 '23 06:09 golfvoyager1

I tried to figure out the cause and noticed that in this code: https://github.com/guardianproject/orbot/blob/2e6af867f30274197c8c9c1f6172f876ba41243a/app/src/main/java/org/torproject/android/ConfigConnectionBottomSheet.kt#L129-L131 Unlike previous if-claues, Prefs.putConnectionPathway(Prefs.PATHWAY_CUSTOM) is not called. Maybe that is why user's selection is not remembered?

golfvoyager1 avatar Sep 23 '23 10:09 golfvoyager1