Skip to content

Commit

Permalink
fix: #1498
Browse files Browse the repository at this point in the history
  • Loading branch information
vernesong committed Jul 26, 2021
1 parent bc70bfb commit 41df2fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions luci-app-openclash/root/usr/share/openclash/openclash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ config_su_check()
if Value.key?('rules') or Value.key?('script') or Value.key?('rule-providers') then
if Value.key?('rules') then
Value_1['rules'] = Value['rules']
elsif Value.key?('script') then
end;
if Value.key?('script') then
Value_1['script'] = Value['script']
elsif Value.key?('rule-providers') then
end;
if Value.key?('rule-providers') then
Value_1['rule-providers'] = Value['rule-providers']
end;
File.open('$CFG_FILE','w') {|f| YAML.dump(Value_1, f)};
Expand Down

0 comments on commit 41df2fc

Please sign in to comment.