fix empty outJson error
This commit is contained in:
@@ -14,6 +14,10 @@ func FillOutJson(i *model.Inbound, hostname string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if outJson == nil {
|
||||||
|
outJson = make(map[string]interface{})
|
||||||
|
}
|
||||||
|
|
||||||
if i.TlsId > 0 {
|
if i.TlsId > 0 {
|
||||||
addTls(&outJson, i.Tls)
|
addTls(&outJson, i.Tls)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user