mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Merge pull request #739 from ianmacd/pr1
Display the service node's IP address after its country.
This commit is contained in:
commit
678d8094a1
@ -99,7 +99,7 @@ class IP2Country private constructor(private val context: Context) {
|
|||||||
|
|
||||||
val bestMatchCountry = comps.lastOrNull { it.key <= Ipv4Int(ip) }?.let { (_, code) ->
|
val bestMatchCountry = comps.lastOrNull { it.key <= Ipv4Int(ip) }?.let { (_, code) ->
|
||||||
if (code != null) {
|
if (code != null) {
|
||||||
countryToNames[code]
|
countryToNames[code] + " [" + ip + "]"
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user