Skip to content

Commit b09b8b5

Browse files
committed
fix config read err
1 parent 05e3c68 commit b09b8b5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ get() {
11521152
is_file_str=$2
11531153
[[ ! $is_file_str ]] && is_file_str='.json$'
11541154
# is_all_json=("$(ls $is_conf_dir | egrep $is_file_str)")
1155-
readarray -t is_all_json <<<$(ls $is_conf_dir | egrep -i "$is_file_str" | sed '/dynamic-port-.*-link/d' | head -233) # limit max 233 lines for show.
1155+
readarray -t is_all_json <<<"$(ls $is_conf_dir | egrep -i "$is_file_str" | sed '/dynamic-port-.*-link/d' | head -233)" # limit max 233 lines for show.
11561156
[[ ! $is_all_json ]] && err "无法找到相关的配置文件: $2"
11571157
[[ ${#is_all_json[@]} -eq 1 ]] && is_config_file=$is_all_json && is_auto_get_config=1
11581158
[[ ! $is_config_file ]] && {

v2ray.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

33
args=$@
4-
is_sh_ver=v4.04
4+
is_sh_ver=v4.05
55

66
. /etc/v2ray/sh/src/init.sh

0 commit comments

Comments
 (0)