diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-12 01:58:23 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-12 02:04:52 +0200 |
commit | 26d762bc5cc57af7df9239861c5d7d1e84beedc5 (patch) | |
tree | 5f764a3c442e8522d83d0fdc953946598c64b7c1 /app/src/main/res | |
parent | eab0248aaaf9a2117269b30b8ba2ff1604bbc062 (diff) |
TunnelEditorFragment: add DNSes to allowedIPs when excluding rfc1918
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/tunnel_editor_peer.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/res/layout/tunnel_editor_peer.xml b/app/src/main/res/layout/tunnel_editor_peer.xml index 8afc5006..472b4cac 100644 --- a/app/src/main/res/layout/tunnel_editor_peer.xml +++ b/app/src/main/res/layout/tunnel_editor_peer.xml @@ -103,10 +103,10 @@ android:layout_height="wrap_content" android:layout_alignBaseline="@+id/allowed_ips_label" android:layout_alignParentEnd="true" - android:checked="@{item.allowedIPsContainsDefaultRouteModRFC1918}" + android:checked="@{item.isExcludePrivateIPsOn}" android:onClick="@{() -> item.toggleExcludePrivateIPs()}" android:text="@string/exclude_private_ips" - android:visibility="@{(item.allowedIPsContainsDefaultRoute || item.allowedIPsContainsDefaultRouteModRFC1918) ? View.VISIBLE : View.GONE}" /> + android:visibility="@{item.canToggleExcludePrivateIPs ? View.VISIBLE : View.GONE}" /> <EditText android:id="@+id/allowed_ips_text" |