optimize: 优化DNS类型自动解析功能,自动识别 `http://xxx` 为 `https` 类型。

release-2.0.0.2
王良 2025-03-04 02:14:59 +08:00
parent 4e56d4dc2c
commit 93af0c9c70
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module.exports = {
// 获取DNS类型
if (conf.type == null) {
if (server.startsWith('https://')) {
if (server.startsWith('https://') || server.startsWith('http://')) {
conf.type = 'https'
} else if (server.startsWith('tls://')) {
conf.type = 'tls'