ping ya.ru -> ping google.com

This commit is contained in:
kulikov0 committed 2026-09-11 13:03:23 +02:00
1 parent c3070210bc
commit 33109b1ab5
3 files changed
+3 -3

No files matched your search

@@ -338,7 +338,7 @@ class MainActivity :
thread { thread {
val started = System.nanoTime() val started = System.nanoTime()
val ok = try { val ok = try {
probeViaSocks5(host = "ya.ru", port = 443) probeViaSocks5(host = "google.com", port = 443)
} catch (_: Exception) { } catch (_: Exception) {
false false
} }
@@ -187,7 +187,7 @@ class MainFragmentView(private val root: View) {
pingButton.clearAnimation() pingButton.clearAnimation()
pingButtonLabel.text = root.context.getString(R.string.ping_run) pingButtonLabel.text = root.context.getString(R.string.ping_run)
pingResult.visibility = View.VISIBLE pingResult.visibility = View.VISIBLE
val host = "ya.ru" val host = "google.com"
if (success) { if (success) {
pingResult.setBackgroundResource(R.drawable.bg_ping_result_ok) pingResult.setBackgroundResource(R.drawable.bg_ping_result_ok)
pingResultHost.setTextColor(root.context.getColor(R.color.accent_emerald)) pingResultHost.setTextColor(root.context.getColor(R.color.accent_emerald))
@@ -31,7 +31,7 @@ private final class PingOnce: @unchecked Sendable {
} }
enum Ping { enum Ping {
static let host = "ya.ru" static let host = "google.com"
static let port: UInt16 = 443 static let port: UInt16 = 443
static let timeoutSeconds = 5.0 static let timeoutSeconds = 5.0