-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTPS URLs are no valid HTTP(S) proxy addresses #1269
Comments
Does Android Linux support: ? |
Good question. I guess it depends what is meant by that. Take the following with a grain of salt, since I am not very familiar with Android internals. When trying to configure a proxy in the Wi-Fi settings, GrapheneOS indeed only allows me to specify a hostname and a port. Apparently there are/were some versions of Android that also allow to specify credentials. In any way, it depends on the applications to support and honor this setting. Regarding syncthing(-android): When the HTTP(S) Proxy setting is non-empty, syncthing-android sets the environment variables If I manage to compile syncthing-android myself, I could make the regex less restrictive and try to see if it works. |
I could do that for you, but then I'd need you standby for feedback to verify the change working correctly. Compiling using the batch / py scripts is relatively easy. Install Android studio , python, git tools, run setenv.cmd and build . :) |
I managed to build an APK with a patched regular expression (9a680a3). With the "HTTP(S) proxy" option in syncthing set to an HTTPS URL pointing to my server, I could observe successful connections from the app to the *.syncthing.net domains. |
Wew, congrats. So we have a verified change. Feel free to PR that line and get the credit of contributing 👍🤗 |
Make the regular expression less restrictive such that not only `http://, but also `https://` URLs are allowed. Fixes Catfriend1#1269
Make the regular expression used to check the validity of the "HTTP(S) proxy" setting less restrictive such that not only `http://, but also `https://` URLs are allowed. Fixes Catfriend1#1269
Hello,
I am trying to configure an HTTPS proxy such that syncthing's requests to https://{discovery,relays}.syncthing.net are proxied. On my computer, I achieve this by setting the
https_proxy
environment variable. When I try the same in the android app via Experimental -> HTTP(S) proxy, I get an error message, that the "Input violates proxy syntax".In the corresponding code, the regex
^http://.*:\\d{1,5}$
only supports HTTP URLs. Is there a specific reason for this restriction? I would like to use a URL of the formhttps://user:[email protected]:1337
to connect to my proxy server.syncthing-android/app/src/main/java/com/nutomic/syncthingandroid/activities/SettingsActivity.java
Lines 1174 to 1187 in 6b7eb72
The text was updated successfully, but these errors were encountered: