Modify restart-hysteria2

This commit is contained in:
Sarina
2024-07-21 18:24:16 +03:30
parent 8bb000565a
commit 7afe429bc9
2 changed files with 3 additions and 5 deletions

View File

@ -71,11 +71,6 @@ def update_hysteria2():
@cli.command('restart-hysteria2')
def restart_hysteria2():
# save traffic status before restarting hysteria2
# ignore the traffic_status prints
f = io.StringIO()
with redirect_stdout(f):
traffic.traffic_status()
run_cmd(['bash', Command.RESTART_HYSTERIA2])

View File

@ -1 +1,4 @@
#!/bin/bash
python3 /etc/hysteria/core/cli.py traffic-status > /dev/null 2>&1
systemctl restart hysteria-server.service