summaryrefslogtreecommitdiff
path: root/res/xml/vpn_ipsettings.xml
blob: 79356e6921f02bff5185a2ea7d5c1c725c4e4be7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >

    <SwitchPreference
        android:disableDependentsState="true"
        android:key="usePull"
        android:title="Pull Settings" 
        android:summaryOn="Requests IP addresses, routes and timing options from the server."
    	android:summaryOff="No information is requested from the server. Settings need to be specified below." />

    <PreferenceCategory android:title="IP" >
        <EditTextPreference
            android:dependency="usePull"
            android:dialogMessage="@string/ipv4_dialog_title"
            android:key="ipv4_address"
            android:title="@string/ipv4_address" />
        <EditTextPreference
            android:dependency="usePull"
            android:dialogMessage="@string/ipv6_dialog_tile"
            android:key="ipv6_address"
            android:title="@string/ipv6_address" />
    </PreferenceCategory>
    <PreferenceCategory android:title="DNS" >
        <CheckBoxPreference
            android:key="overrideDNS"
            android:summary="Override DNS Settings by Server"
            android:title="Override DNS Settings" />

        <EditTextPreference
            android:key="searchdomain"
            android:title="searchDomain" />
        <EditTextPreference
            android:key="dns1"
            android:dialogMessage="DNS Server to be used."
            android:title="DNS Server" />
        <EditTextPreference
            android:key="dns2"
            android:dialogMessage="Secondary DNS Server used if the normal DNS Server cannot be reached."
            android:title="Backup DNS Server" />
    </PreferenceCategory>
    <PreferenceCategory android:title="Routing" >
        <CheckBoxPreference
            android:defaultValue="true"
            android:dependency="usePull"
            android:disableDependentsState="true"
            android:key="useDefaultRoute"
            android:summary="Redirects all Traffic over the VPN"
            android:title="Use default Route" />

        <EditTextPreference
            android:dependency="useDefaultRoute"
            android:dialogMessage="Enter custom routes. Only enter destination in CIDR format. &quot;10.0.0.0/8 2002::/16&quot; would direct the networks 10.0.0.0/8 and 2002::/16 over the VPN."
            android:key="customRoutes"
            android:title="Custom Routes" />
    </PreferenceCategory>

</PreferenceScreen>