Merge pull request #739 from ianmacd/pr1

Display the service node's IP address after its country.
pull/765/head^2
Harris 4 years ago committed by GitHub
commit 678d8094a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
} }
@ -126,4 +126,4 @@ class IP2Country private constructor(private val context: Context) {
} }
} }
// endregion // endregion
} }

Loading…
Cancel
Save