Skip to content

Commit 52b9fbd

Browse files
committed
修复xray流量重置
1 parent b2382f1 commit 52b9fbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

v2ray_util/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '3.10.3'
1+
__version__ = '3.10.4'
22

33
import sys
44
if "xray" in sys.argv[0]:

v2ray_util/global_setting/stats_ctr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_stats(self, meta_info, is_reset=False, is_group=False):
3030

3131
if run_type == "xray":
3232
stats_cmd = "cd /usr/bin/xray && ./xray api stats --server=127.0.0.1:{} -name \"{}>>>{}>>>traffic>>>{}\""
33-
if is_reset == True:
33+
if is_reset == "true":
3434
stats_cmd = stats_cmd + " -reset"
3535
else:
3636
stats_cmd = "cd /usr/bin/v2ray && ./v2ctl api --server=127.0.0.1:{} StatsService.GetStats 'name: \"{}>>>{}>>>traffic>>>{}\"" + " reset: {}'".format(is_reset)

0 commit comments

Comments
 (0)