Suppress links for bogon IPs

ipinfo.io does not tell a lot of information about bogon IP addresses, so let us just not show any links at all.
This commit is contained in:
Mygod
2019-01-26 21:57:58 +08:00
parent d4208affbb
commit 4918dfc856
2 changed files with 12 additions and 13 deletions

View File

@@ -55,7 +55,7 @@ open class Client(val mac: Long, val iface: String) {
SpannableStringBuilder().apply {
if (!record?.nickname.isNullOrEmpty()) appendln(macIface)
ip.entries.forEach { (ip, state) ->
append(makeIpSpan(ip.hostAddress))
append(makeIpSpan(ip))
appendln(app.getText(when (state) {
IpNeighbour.State.INCOMPLETE -> R.string.connected_state_incomplete
IpNeighbour.State.VALID -> R.string.connected_state_valid