From 26d762bc5cc57af7df9239861c5d7d1e84beedc5 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 12 Jul 2018 01:58:23 +0200 Subject: TunnelEditorFragment: add DNSes to allowedIPs when excluding rfc1918 Signed-off-by: Jason A. Donenfeld --- app/src/main/res/layout/tunnel_editor_peer.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/res') 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}" />