Skip to content

Commit

Permalink
修复xray流量统计
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Jul 14, 2023
1 parent b31b376 commit 9fee00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2ray_util/global_setting/stats_ctr.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, door_port):
def __run_command(self, command):
value = 0
result = bytes.decode(subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL).stdout.strip())
result_list = re.findall(r"\s+\d+\s+", result)
result_list = re.findall(r"\d+", result)
if "v2ctl" not in result and len(result_list) == 1:
value = int(result_list[0])
return value
Expand Down

0 comments on commit 9fee00e

Please sign in to comment.