Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vernesong committed Oct 31, 2024
1 parent 04b268d commit 179245f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ruby -ryaml -rYAML -I "/usr/share/openclash" -E UTF-8 -e "
Value['proxy-groups'].each do |x|
threadsp << Thread.new {
begin
uci_name_tmp=%x{uci -q add openclash groups}.chomp
uci_name_tmp=%x{uci -q add openclash groups 2>&1}.chomp
uci_set='uci -q set openclash.' + uci_name_tmp + '.'
uci_add='uci -q add_list openclash.' + uci_name_tmp + '.'
Expand Down
4 changes: 2 additions & 2 deletions luci-app-openclash/root/usr/share/openclash/yml_proxys_get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ ruby -ryaml -rYAML -I "/usr/share/openclash" -E UTF-8 -e "
system(cmd);
else
#代理集不存在时添加新代理集
uci_name_tmp=%x{uci add openclash proxy-provider}.chomp;
uci_name_tmp=%x{uci -q add openclash proxy-provider 2>&1}.chomp;
uci_set='uci -q set openclash.' + uci_name_tmp + '.';
uci_add='uci -q add_list openclash.' + uci_name_tmp + '.';
uci_del='uci -q delete openclash.' + uci_name_tmp + '.';
Expand Down Expand Up @@ -335,7 +335,7 @@ ruby -ryaml -rYAML -I "/usr/share/openclash" -E UTF-8 -e "
end;
else
#添加新节点
uci_name_tmp=%x{uci add openclash servers}.chomp;
uci_name_tmp=%x{uci -q add openclash servers 2>&1}.chomp;
uci_set='uci -q set openclash.' + uci_name_tmp + '.';
uci_add='uci -q add_list openclash.' + uci_name_tmp + '.';
uci_del='uci -q delete openclash.' + uci_name_tmp + '.';
Expand Down

0 comments on commit 179245f

Please sign in to comment.