add option to disable quic

This commit is contained in:
Andrew Zhao
2021-04-03 16:11:35 -04:00
parent edb37c95e1
commit 9a8f1a0b0a
3 changed files with 13 additions and 8 deletions

View File

@@ -95,7 +95,7 @@ LOCALES = {
"zh-TW" => load_locale("zh-TW"),
}
YT_POOL = QUICPool.new(YT_URL, capacity: CONFIG.pool_size, timeout: 2.0)
YT_POOL = YoutubeConnectionPool.new(YT_URL, capacity: CONFIG.pool_size, timeout: 2.0, use_quic: CONFIG.use_quic)
# CLI
Kemal.config.extra_options do |parser|