preferences_nonvpnmode.xml 3.02 KB
Newer Older
Daniel Wolf's avatar
Daniel Wolf committed
1
<?xml version="1.0" encoding="utf-8"?>
2
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
Daniel Wolf's avatar
Daniel Wolf committed
3

4
    <androidx.preference.Preference android:summary="@string/summary_category_nonvpnmode" />
Daniel Wolf's avatar
Daniel Wolf committed
5

6
7
8
9
10
    <androidx.preference.Preference
            android:summary="@string/summary_nonvpn_help_faq"
            android:key="nonvpn_help_faq"
            android:title="@string/title_nonvpn_help_faq" />

11
12
    <androidx.preference.PreferenceCategory android:title="@string/preference_category_nonvpnmode">
        <androidx.preference.CheckBoxPreference
13
                android:defaultValue="false"
Daniel Wolf's avatar
Daniel Wolf committed
14
15
                android:key="run_without_vpn"
                android:summary="@string/summary_run_without_vpn"
16
                android:title="@string/title_run_without_vpn" />
Daniel Wolf's avatar
Daniel Wolf committed
17

Daniel Wolf's avatar
Daniel Wolf committed
18
        <androidx.preference.EditTextPreference
Daniel Wolf's avatar
Daniel Wolf committed
19
20
21
                android:defaultValue="11053"
                android:dependency="run_without_vpn"
                android:digits="0123456789"
22
23
                android:inputType="number"
                android:key="non_vpn_server_port"
Daniel Wolf's avatar
Daniel Wolf committed
24
                android:summary="@string/summary_local_server_port"
25
                android:title="@string/title_local_server_port" />
Daniel Wolf's avatar
Daniel Wolf committed
26

27
28
29
        <Preference
                android:key="nonvpn_connect_info"
                android:summary="@string/summary_category_nonvpnmode_forwardinfo" />
30

31
32
33
34
35
36
37
        <PreferenceCategory android:title="@string/preference_category_iptables" android:key="nonvpn_category_iptables">
            <CheckBoxPreference
                    android:defaultValue="false"
                    android:dependency="run_without_vpn"
                    android:key="nonvpn_use_iptables"
                    android:summary="@string/summary_iptables_mode"
                    android:title="@string/title_iptables_mode" />
38

39
40
41
42
43
44
45
46
47
48
49
50
51
            <CheckBoxPreference
                    android:defaultValue="false"
                    android:key="nonvpn_iptables_disable_ipv6"
                    android:dependency="nonvpn_use_iptables"
                    android:title="@string/title_iptables_disable_ipv6"
                    android:summary="@string/summary_iptables_disable_ipv6" />

            <Preference
                    android:dependency="run_without_vpn"
                    android:key="check_iptables"
                    android:summary="@string/summary_check_iptables"
                    android:title="@string/title_check_iptables" />
        </PreferenceCategory>
52
    </androidx.preference.PreferenceCategory>
53

Daniel Wolf's avatar
Daniel Wolf committed
54
55
56
57
58
    <PreferenceCategory android:title="@string/preference_category_nonvpnmode_help" android:key="nonvpn_help">
        <Preference
                android:key="nonvpn_help_netguard"
                android:title="NetGuard"
                android:summary="@string/summary_nonvpn_help" />
59
60
61
62
        <Preference
                android:key="nonvpn_help_generic"
                android:title="@string/nonvpn_help_generic_title"
                android:summary="@string/summary_nonvpn_help_generic" />
63
    </PreferenceCategory>
64
</androidx.preference.PreferenceScreen>