ModuleList / akashaProxy

better transparent proxy module (based clash)
GNU General Public License v3.0
122 stars 15 forks source link

Fix webui: get clash path from clash.config && verify pid #12

Closed ri-char closed 4 months ago

ri-char commented 4 months ago
  1. Get the path of clash from clash.config
  2. Verify the pid in run/clash.pid by the following command. This fixes error status after reboot.
    test $(realpath /proc/${pid}/exe) == $(realpath "${CLASH_PATH}/clashkernel/${clashFileName}") || exit 1