optimize: 优化DNS类型自动解析功能,自动识别 `http://xxx` 为 `https` 类型。
parent
4e56d4dc2c
commit
93af0c9c70
|
@ -23,7 +23,7 @@ module.exports = {
|
||||||
|
|
||||||
// 获取DNS类型
|
// 获取DNS类型
|
||||||
if (conf.type == null) {
|
if (conf.type == null) {
|
||||||
if (server.startsWith('https://')) {
|
if (server.startsWith('https://') || server.startsWith('http://')) {
|
||||||
conf.type = 'https'
|
conf.type = 'https'
|
||||||
} else if (server.startsWith('tls://')) {
|
} else if (server.startsWith('tls://')) {
|
||||||
conf.type = 'tls'
|
conf.type = 'tls'
|
||||||
|
|
Loading…
Reference in New Issue