mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-22 13:16:09 +03:00
mg
This commit is contained in:
parent
d5e1125c36
commit
2cffa483aa
@ -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"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user