Skip to content

Commit e197a70

Browse files
committed
fix exceptions for outjson #459
1 parent 875c660 commit e197a70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

util/outJson.go

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ import (
88

99
// Fill Inbound's out_json
1010
func FillOutJson(i *model.Inbound, hostname string) error {
11+
switch i.Type {
12+
case "direct", "tun", "redirect", "tproxy":
13+
return nil
14+
}
1115
var outJson map[string]interface{}
1216
err := json.Unmarshal(i.OutJson, &outJson)
1317
if err != nil {

0 commit comments

Comments
 (0)