Skip to content

Commit

Permalink
build: 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Nov 18, 2023
1 parent d52b040 commit e12d642
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "io.github.gnuf0rce"
version = "1.4.1"
version = "1.4.2"

mavenCentralPublish {
useCentralS01()
Expand Down
10 changes: 1 addition & 9 deletions src/main/kotlin/io/github/gnuf0rce/mirai/rss/RssHelperPlugin.kt
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
package io.github.gnuf0rce.mirai.rss

import net.mamoe.mirai.console.*
import net.mamoe.mirai.console.command.*
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.register
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.unregister
import net.mamoe.mirai.console.data.*
import net.mamoe.mirai.console.plugin.jvm.*
import net.mamoe.mirai.console.plugin.*
import net.mamoe.mirai.console.util.*

@PublishedApi
internal object RssHelperPlugin : KotlinPlugin(
JvmPluginDescription(id = "io.github.gnuf0rce.rss-helper", version = "1.4.1") {
JvmPluginDescription(id = "io.github.gnuf0rce.rss-helper", version = "1.4.2") {
name("rss-helper")
author("cssxsh")
}
Expand All @@ -22,11 +19,6 @@ internal object RssHelperPlugin : KotlinPlugin(
private val data: List<PluginData> by services()

override fun onEnable() {
// XXX: mirai console version check
check(SemVersion.parseRangeRequirement(">= 2.12.0-RC").test(MiraiConsole.version)) {
"$name $version 需要 Mirai-Console 版本 >= 2.12.0,目前版本是 ${MiraiConsole.version}"
}

for (config in config) config.reload()
for (data in data) data.reload()
for (command in commands) command.register()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/io/github/gnuf0rce/rss/HttpClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ internal class RubySSLSocketFactory(private val matcher: List<Regex>) : SSLSocke

private fun Socket.setServerNames(): Socket = apply {
if (this !is SSLSocket) return@apply
val address = inetAddress.hostAddress
val address = inetAddress?.hostAddress ?: return@apply
sslParameters = sslParameters.apply {
serverNames = serverNames?.filter { name ->
name !is SNIHostName || matcher.none { name.asciiName.matches(it) }
Expand Down

0 comments on commit e12d642

Please sign in to comment.