Skip to content

Commit 1bf04f5

Browse files
committed
fix typo
1 parent 2689cc2 commit 1bf04f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

luci-app-openclash/root/usr/share/openclash/yml_change.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ begin
676676
Thread.new{
677677
if '$custom_fakeip_filter' == '1' then
678678
if '${35}' == 'whitelist' then
679-
Value['dns']['fake-ip-filter-mode']='whitelist';
679+
Value['dns']['fake-ip-filter-mode']='whitelist';
680680
else
681681
Value['dns']['fake-ip-filter-mode']='blacklist';
682682
end;
@@ -713,13 +713,13 @@ Thread.new{
713713
Value['dns']['fake-ip-filter'].insert(-1,'geosite:cn');
714714
Value['dns']['fake-ip-filter']=Value['dns']['fake-ip-filter'].uniq;
715715
else
716-
Value['dns'].merge!({'fake-ip-filter'=>['geosite:category-games@cn,geosite:cn']});
716+
Value['dns'].merge!({'fake-ip-filter'=>['geosite:category-games@cn','geosite:cn']});
717717
end;
718718
puts '${LOGTIME} Tip: Because Need Ensure Bypassing IP Option Work, Added The Fake-IP-Filter Rule【 geosite:category-games@cn,geosite:cn 】';
719719
else
720720
if Value['dns'].has_key?('fake-ip-filter') and not Value['dns']['fake-ip-filter'].to_a.empty? then
721721
Value['dns']['fake-ip-filter'].each{|x|
722-
if x =~ /(geosite:?).*(@cn|:cn)/ then
722+
if x =~ /(geosite:?).*(@cn|:cn|,cn)/ then
723723
Value['dns']['fake-ip-filter'].delete(x);
724724
puts '${LOGTIME} Tip: Because Need Ensure Bypassing IP Option Work, Deleted The Fake-IP-Filter Rule【' + x + '】';
725725
end;

0 commit comments

Comments
 (0)