diff --git a/app/build.gradle b/app/build.gradle index 3b934575..7f592732 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -85,7 +85,7 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1" implementation 'io.ktor:ktor-server-core:2.3.4' - implementation 'io.ktor:ktor-server-netty:2.3.4' + implementation 'io.ktor:ktor-server-cio:2.3.4' implementation 'io.ktor:ktor-server-call-logging:2.3.4' implementation("ch.qos.logback:logback-classic:1.2.6") diff --git a/app/src/main/java/com/github/catvod/utils/ktorServer.kt b/app/src/main/java/com/github/catvod/utils/ktorServer.kt index 4b1d7a2c..e57df71c 100644 --- a/app/src/main/java/com/github/catvod/utils/ktorServer.kt +++ b/app/src/main/java/com/github/catvod/utils/ktorServer.kt @@ -9,8 +9,8 @@ import io.ktor.http.HttpStatusCode import io.ktor.server.application.ApplicationCall import io.ktor.server.application.call import io.ktor.server.application.install +import io.ktor.server.cio.CIO import io.ktor.server.engine.embeddedServer -import io.ktor.server.netty.Netty import io.ktor.server.plugins.callloging.CallLogging import io.ktor.server.response.respondBytesWriter import io.ktor.server.response.respondText @@ -33,7 +33,7 @@ object KtorServer { //每个片1MB private val partSize = 1024 * 1024 * 1 private val server by lazy { - embeddedServer(Netty, port) { + embeddedServer(CIO, port) { install(CallLogging) diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index ae5eee73..ce188c95 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/jar/custom_spider.jar.md5 b/jar/custom_spider.jar.md5 index 58d936fc..4a14d53b 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -63124654d240f56684fc325e7260c68e +f439c33b829843211e2456803623cfc2 diff --git a/json/test.json b/json/test.json index 72006fc8..815b9f79 100644 --- a/json/test.json +++ b/json/test.json @@ -1,5 +1,5 @@ { - "spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;63124654d240f56684fc325e7260c68e", + "spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;f439c33b829843211e2456803623cfc2", "lives": [ { "name": "电视直播",