修复流量信息的处理 reset 参数无效问题

This commit is contained in:
xiaobang 2022-10-10 20:20:45 +08:00 committed by yuhan6665
parent 4f761eb565
commit 037f8ed90a

View file

@ -71,7 +71,7 @@ _XRAY=/usr/local/bin/xray
apidata () { apidata () {
local ARGS= local ARGS=
if [[ $1 == "reset" ]]; then if [[ $1 == "reset" ]]; then
ARGS="reset: true" ARGS="-reset=true"
fi fi
$_XRAY api statsquery --server=$_APISERVER "${ARGS}" \ $_XRAY api statsquery --server=$_APISERVER "${ARGS}" \
| awk '{ | awk '{