mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-04 06:00:11 +00:00
优化:bark/gotify通道忽略https证书(提高自建服务端兼容性)
This commit is contained in:
parent
104a7057ed
commit
ca7b351c63
@ -74,7 +74,8 @@ class BarkUtils {
|
||||
}
|
||||
}
|
||||
|
||||
request.keepJson(true)
|
||||
request.ignoreHttpsCert() //忽略https证书
|
||||
.keepJson(true)
|
||||
.timeOut((SettingUtils.requestTimeout * 1000).toLong()) //超时时间10s
|
||||
.cacheMode(CacheMode.NO_CACHE)
|
||||
.retryCount(SettingUtils.requestRetryTimes) //超时重试的次数
|
||||
|
@ -52,6 +52,7 @@ class GotifyUtils {
|
||||
request.params("title", title)
|
||||
.params("message", content)
|
||||
.params("priority", setting.priority)
|
||||
.ignoreHttpsCert() //忽略https证书
|
||||
.keepJson(true)
|
||||
.timeOut((SettingUtils.requestTimeout * 1000).toLong()) //超时时间10s
|
||||
.cacheMode(CacheMode.NO_CACHE)
|
||||
|
Loading…
Reference in New Issue
Block a user