Merge pull request #739 from ianmacd/pr1

Display the service node's IP address after its country.
This commit is contained in:
Harris 2021-10-06 02:43:23 +00:00 committed by GitHub
commit 678d8094a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ class IP2Country private constructor(private val context: Context) {
val bestMatchCountry = comps.lastOrNull { it.key <= Ipv4Int(ip) }?.let { (_, code) ->
if (code != null) {
countryToNames[code]
countryToNames[code] + " [" + ip + "]"
} else {
null
}
@ -126,4 +126,4 @@ class IP2Country private constructor(private val context: Context) {
}
}
// endregion
}
}