Skip to content

Commit 4972c7f

Browse files
committed
fix(service): 修复一个 core 模式的问题,模块安装超时改为10s
1 parent 4236560 commit 4972c7f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

box/scripts/box.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ prepare_mihomo() {
432432
fi
433433

434434
if [[ "${network_mode}" == @(mixed|tproxy|redirect|enhance) ]]; then
435-
if [[ -n "${packages_list[*]}" || -n "${ignore_out_list[*]}" || -n "${gid_list[*]}" ]] && [ "${mihomo_enhanced_mode}" = "fake-ip" ]; then
435+
if [[ "${proxy_mode}" != "core" ]] && [[ -n "${packages_list[*]}" || -n "${ignore_out_list[*]}" || -n "${gid_list[*]}" ]] && [ "${mihomo_enhanced_mode}" = "fake-ip" ]; then
436436
log Warning "${proxy_mode} 仅在 mihomo 的 enhanced-mode: redir-host 下生效"
437437
log Warning "已将 fake-ip 替换为 redir-host"
438438
sed -i "s/enhanced-mode:.*/enhanced-mode: redir-host/g" "${mihomo_config}"

customize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ handle_choice() {
135135
local question="$1"
136136
local choice_yes="${2:-是}"
137137
local choice_no="${3:-否}"
138-
local timeout_seconds="${4:-5}"
138+
local timeout_seconds="${4:-10}"
139139

140140
ui_print " "
141141
ui_print "-----------------------------------------------------------"

0 commit comments

Comments
 (0)