Skip to content

Commit

Permalink
fix: multi core running with no capsh
Browse files Browse the repository at this point in the history
  • Loading branch information
vernesong committed Jan 3, 2022
1 parent 9dff34f commit 0b0e0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luci-app-openclash/root/etc/init.d/openclash
Original file line number Diff line number Diff line change
Expand Up @@ -1294,8 +1294,8 @@ start_run_core()
if [ -n "$(pidof clash)" ] && [ "$core_type" != "TUN" ] && [ "$config_reload" != "0" ]; then
curl -s --connect-timeout 5 -m 5 -H 'Content-Type: application/json' -H "Authorization: Bearer ${da_password}" -XPUT http://"$lan_ip":"$cn_port"/configs -d "{\"path\": \"$CONFIG_FILE\"}" 2>/dev/null
else
kill_clash
if [ -z "$_koolshare" ]; then
kill_clash
#防止赋权失败
touch /tmp/openclash.log 2>/dev/null
chmod o+w /etc/openclash/proxy_provider/* 2>/dev/null
Expand Down

0 comments on commit 0b0e0a0

Please sign in to comment.