mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-04-04 06:13:37 +03:00
mg
This commit is contained in:
parent
d5e1125c36
commit
2cffa483aa
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,7 @@ namespace ProxySuper.Core.Services
|
|||
EnableBBR();
|
||||
|
||||
Progress.Desc = "重启V2ray服务";
|
||||
|
||||
RunCmd("systemctl restart caddy");
|
||||
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/AmbientCapabilities=/#AmbientCapabilities=/g' /etc/systemd/system/v2ray.service");
|
||||
RunCmd($"systemctl daemon-reload");
|
||||
RunCmd("systemctl enable v2ray");
|
||||
|
||||
if (FileExists("/usr/local/etc/v2ray/config.json"))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue