implement support for HTTP proxy (#489)
This change allows the user to manually enter an unauthenticated proxy configuration to be used for all API connections. This is mainly intended for using Tusky with Tor (via Orbot or a local proxy).
This commit is contained in:
parent
73342d38cf
commit
7c83e0f87d
9 changed files with 149 additions and 8 deletions
18
app/src/main/res/xml/http_proxy_preferences.xml
Normal file
18
app/src/main/res/xml/http_proxy_preferences.xml
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen android:title="@string/pref_title_http_proxy_settings"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="httpProxyEnabled"
|
||||
android:title="@string/pref_title_http_proxy_enable" />
|
||||
<EditTextPreference
|
||||
android:key="httpProxyServer"
|
||||
android:title="@string/pref_title_http_proxy_server"
|
||||
android:summary="%s" />
|
||||
<EditTextPreference
|
||||
android:key="httpProxyPort"
|
||||
android:title="@string/pref_title_http_proxy_port"
|
||||
android:summary="%s" />
|
||||
|
||||
</PreferenceScreen>
|
|
@ -74,4 +74,12 @@
|
|||
android:title="@string/pref_title_edit_notification_settings" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="@string/pref_title_proxy_settings">
|
||||
<Preference
|
||||
android:key="httpProxyPreferences"
|
||||
android:summary="%s"
|
||||
android:title="@string/pref_title_http_proxy_settings" />
|
||||
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue