1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-25 22:56:09 +03:00
This commit is contained in:
autumn 2021-08-27 16:37:46 +08:00
parent d5e1125c36
commit 2cffa483aa

View File

@ -78,6 +78,7 @@ namespace ProxySuper.Core.Services
EnableBBR(); EnableBBR();
Progress.Desc = "重启V2ray服务"; Progress.Desc = "重启V2ray服务";
RunCmd("systemctl restart caddy"); RunCmd("systemctl restart caddy");
RunCmd("systemctl restart v2ray"); RunCmd("systemctl restart v2ray");
@ -389,6 +390,7 @@ namespace ProxySuper.Core.Services
RunCmd($"sed -i 's/CapabilityBoundingSet=/#CapabilityBoundingSet=/g' /etc/systemd/system/v2ray.service"); RunCmd($"sed -i 's/CapabilityBoundingSet=/#CapabilityBoundingSet=/g' /etc/systemd/system/v2ray.service");
RunCmd($"sed -i 's/AmbientCapabilities=/#AmbientCapabilities=/g' /etc/systemd/system/v2ray.service"); RunCmd($"sed -i 's/AmbientCapabilities=/#AmbientCapabilities=/g' /etc/systemd/system/v2ray.service");
RunCmd($"systemctl daemon-reload"); RunCmd($"systemctl daemon-reload");
RunCmd("systemctl enable v2ray");
if (FileExists("/usr/local/etc/v2ray/config.json")) if (FileExists("/usr/local/etc/v2ray/config.json"))
{ {