fix(data): дефолты потоков при разборе серверов из ClientConfig

This commit is contained in:
samosvalishe committed 2026-09-19 23:54:48 +03:00
1 parent 00af5a902a
commit 30d1dc1be0
1 file changed
+2 -3
@@ -113,9 +113,8 @@ internal object ServerJson {
provider = cliO.optString("provider", Provider.VK).let {
if (it in Provider.VALUES) it else Provider.VK
},
// Фоллбэки = дефолты ClientConfig (для новых полей).
threads = cliO.optInt("threads", 12),
streamsPerCred = cliO.optInt("streamsPerCred", 6),
threads = cliO.optInt("threads", ClientConfig.DEFAULT_THREADS),
streamsPerCred = cliO.optInt("streamsPerCred", ClientConfig.DEFAULT_STREAMS_PER_CRED),
useUdp = cliO.optBoolean("useUdp", false),
manualCaptcha = cliO.optBoolean("manualCaptcha", false),
localPort = cliO.optString("localPort", ClientConfig.DEFAULT_LOCAL_PORT),