mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-29 06:31:56 +00:00
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:
1 parent
35a3121a83
commit
38f090255c
1 file changed
+2
@@ -92,6 +92,8 @@ func executeAddRules(cmd *base.Command, args []string) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
base.Fatalf("failed to perform AddRule: %s", err)
|
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)
|
showJSONResponse(resp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user