summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-11-05 17:45:27 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-12-10 12:55:06 +0000
commit0c9bcd2d2566b4a0efaf5485818638b959522291 (patch)
tree460f4016e4b2a98c67812de37fd97b6d9f5cb164 /android/src
parent3c2e6dd75cbf9f81a16450e1312f8cc92dd7b936 (diff)
downloadmullvadvpn-0c9bcd2d2566b4a0efaf5485818638b959522291.tar.xz
mullvadvpn-0c9bcd2d2566b4a0efaf5485818638b959522291.zip
Show only IP address, discarding the host name
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsServerHolder.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsServerHolder.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsServerHolder.kt
index 06fb4dcede..42a8a14d94 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsServerHolder.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsServerHolder.kt
@@ -5,11 +5,12 @@ import android.widget.TextView
import java.net.InetAddress
import kotlin.properties.Delegates.observable
import net.mullvad.mullvadvpn.R
+import net.mullvad.talpid.util.addressString
class CustomDnsServerHolder(view: View) : CustomDnsItemHolder(view) {
private val label: TextView = view.findViewById(R.id.label)
var serverAddress by observable<InetAddress?>(null) { _, _, address ->
- label.text = address.toString()
+ label.text = address?.addressString() ?: ""
}
}