From e197a7081b29eb2c967cecd45956b5c610f47fd4 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 9 Feb 2025 14:27:14 +0100 Subject: [PATCH] fix exceptions for outjson #459 --- util/outJson.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/outJson.go b/util/outJson.go index 0468afa..c683b3f 100644 --- a/util/outJson.go +++ b/util/outJson.go @@ -8,6 +8,10 @@ import ( // Fill Inbound's out_json func FillOutJson(i *model.Inbound, hostname string) error { + switch i.Type { + case "direct", "tun", "redirect", "tproxy": + return nil + } var outJson map[string]interface{} err := json.Unmarshal(i.OutJson, &outJson) if err != nil {