File tree 1 file changed +3
-3
lines changed
luci-app-openclash/root/usr/share/openclash
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -676,7 +676,7 @@ begin
676
676
Thread.new{
677
677
if '$custom_fakeip_filter ' == '1' then
678
678
if '${35} ' == 'whitelist' then
679
- Value['dns']['fake-ip-filter-mode']='whitelist';
679
+ Value['dns']['fake-ip-filter-mode']='whitelist';
680
680
else
681
681
Value['dns']['fake-ip-filter-mode']='blacklist';
682
682
end;
@@ -713,13 +713,13 @@ Thread.new{
713
713
Value['dns']['fake-ip-filter'].insert(-1,'geosite:cn');
714
714
Value['dns']['fake-ip-filter']=Value['dns']['fake-ip-filter'].uniq;
715
715
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']});
717
717
end;
718
718
puts '${LOGTIME} Tip: Because Need Ensure Bypassing IP Option Work, Added The Fake-IP-Filter Rule【 geosite:category-games@cn,geosite:cn 】';
719
719
else
720
720
if Value['dns'].has_key?('fake-ip-filter') and not Value['dns']['fake-ip-filter'].to_a.empty? then
721
721
Value['dns']['fake-ip-filter'].each{|x|
722
- if x =~ /(geosite:?).*(@cn|:cn)/ then
722
+ if x =~ /(geosite:?).*(@cn|:cn|,cn )/ then
723
723
Value['dns']['fake-ip-filter'].delete(x);
724
724
puts '${LOGTIME} Tip: Because Need Ensure Bypassing IP Option Work, Deleted The Fake-IP-Filter Rule【' + x + '】';
725
725
end;
You can’t perform that action at this time.
0 commit comments