Auto detect prefix length as well

Unfortunately NetworkInterface requires INTERNET permission. (this can actually be bypassed very easily but let's prefer usage of public API)
This commit is contained in:
Mygod
2018-01-04 14:56:07 +08:00
parent 19feec30bc
commit faf5466ced
6 changed files with 52 additions and 51 deletions

View File

@@ -8,13 +8,6 @@
android:title="Upstream interface"
android:summary="%s"
android:defaultValue="tun0"/>
<AutoSummaryEditTextPreference
android:key="service.subnetPrefixLength"
android:title="Subnet prefix length"
android:summary="%s"
android:inputType="number"
android:maxLength="3"
android:defaultValue="24"/>
<AutoSummaryEditTextPreference
android:key="service.dns"
android:title="Downstream DNS server:port"