Commands: Fix xray api adrules c1.json c2.json (#7276)

https://github.com/XTLS/Xray-core/pull/7276#pullrequestreview-5680949792

---------

Co-authored-by: 风扇滑翔翼 <Fangliding.fshxy@outlook.com>
This commit is contained in:
Yuriy Tumanov
2026-10-28 21:59:27 +00:00
committed by RPRX
co-authored by 风扇滑翔翼
parent 35a3121a83
commit 38f090255c
+2
View File
@@ -92,6 +92,8 @@ func executeAddRules(cmd *base.Command, args []string) {
if err != nil {
base.Fatalf("failed to perform AddRule: %s", err)
}
// if multiple files are specified, use append to merge them instead of overriding previous one
shouldAppend = true
showJSONResponse(resp)
}
}