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 | 22fb7db3d90fa1e7effe3518bf8196434d27e4b9 (patch) | |
tree | 5f764a3c442e8522d83d0fdc953946598c64b7c1 /app/src/main/res/layout | |
parent | 99d1ecb29067f127d4e5a4c096d7ffa702d67322 (diff) |
TunnelEditorFragment: add DNSes to allowedIPs when excluding rfc1918
Diffstat (limited to 'app/src/main/res/layout')
-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" |