Skip to content

Commit 1d7f8e6

Browse files
author
Taois
committed
feat: 默认关闭doh
1 parent 6905cf3 commit 1d7f8e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spider/js/设置中心.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ var rule = {
435435
vod_pic: images.lives,
436436
vod_desc: "流式代理mp4等视频"
437437
});
438-
d.push(genMultiInput('enable_doh', '设置DOH启用状态', '设置为0关闭(默认1开启)', images.settings));
438+
d.push(genMultiInput('enable_doh', '设置DOH启用状态', '设置为1开启(默认0关闭)', images.settings));
439439
d.push(getInput('get_enable_doh', '查看DOH启用状态', images.settings));
440440
d.push(genMultiInput('enable_system_proxy', '设置系统代理启用状态', '设置为0关闭(默认1开启)', images.settings));
441441
d.push(getInput('get_enable_system_proxy', '查看系统代理启用状态', images.settings));

utils/dns_doh.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const configPath = path.resolve(__dirname, '../config/player.json');
2727

2828
// Initialize Resolver Lazy
2929
function getResolver() {
30-
// Check if DOH is enabled via ENV (default: 1/true)
31-
const enableDoh = ENV.get('enable_doh', '1') === '1' || ENV.get('enable_doh') === 'true';
30+
// Check if DOH is enabled via ENV (default: 0/false)
31+
const enableDoh = ENV.get('enable_doh', '0') === '1' || ENV.get('enable_doh') === 'true';
3232
if (!enableDoh) {
3333
// console.log('[DOH] DOH is disabled via ENV.');
3434
return null;

0 commit comments

Comments
 (0)