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 1804585 commit 8cd67b6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
1 change: 0 additions & 1 deletion luci-app-openclash/root/etc/init.d/openclash
Original file line number Diff line number Diff line change
Expand Up @@ -3019,7 +3019,6 @@ stop()
rm -rf /tmp/openclash_config.tmp >/dev/null 2>&1
rm -rf /tmp/openclash.change >/dev/null 2>&1
rm -rf /tmp/openclash_debug.log >/dev/null 2>&1
rm -rf /tmp/etc/openclash >/dev/null 2>&1
rm -rf /tmp/openclash_edit_file_name >/dev/null 2>&1
rm -rf ${DNSMASQ_CONF_DIR}/dnsmasq_openclash_chnroute_pass.conf >/dev/null 2>&1
rm -rf ${DNSMASQ_CONF_DIR}/dnsmasq_openclash_chnroute6_pass.conf >/dev/null 2>&1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@
*.local
*.home.arpa
#放行NTP服务
time.+.com
time.+.gov
time.+.edu.cn
time.+.apple.com
time.*.com
time.*.gov
time.*.edu.cn
time.*.apple.com
time-ios.apple.com
time1.+.com
time2.+.com
time3.+.com
time4.+.com
time5.+.com
time6.+.com
time7.+.com
ntp.+.com
ntp1.+.com
ntp2.+.com
ntp3.+.com
ntp4.+.com
ntp5.+.com
ntp6.+.com
ntp7.+.com
+.time.edu.cn
+.ntp.org.cn
time1.*.com
time2.*.com
time3.*.com
time4.*.com
time5.*.com
time6.*.com
time7.*.com
ntp.*.com
ntp1.*.com
ntp2.*.com
ntp3.*.com
ntp4.*.com
ntp5.*.com
ntp6.*.com
ntp7.*.com
*.time.edu.cn
*.ntp.org.cn
+.pool.ntp.org
time1.cloud.tencent.com
#放行网易云音乐
Expand Down
6 changes: 4 additions & 2 deletions luci-app-openclash/root/usr/share/openclash/yml_change.sh
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,10 @@ threads << Thread.new {
Value['tun']['device']='utun';
Value_2={'dns-hijack'=>['tcp://any:53']};
Value['tun'].merge!(Value_2);
Value['tun']['gso']=true;
Value['tun']['gso-max-size']=65536;
if '$stack_type' != 'mixed' then
Value['tun']['gso']=true;
Value['tun']['gso-max-size']=65536;
end;
Value['tun']['auto-route']=false;
Value['tun']['auto-detect-interface']=false;
Value['tun']['auto-redirect']=false;
Expand Down

0 comments on commit 8cd67b6

Please sign in to comment.