Fix direct udp outbound

This commit is contained in:
世界
2022-07-25 16:18:11 +08:00
parent cc78f0347d
commit 146008a631
5 changed files with 17 additions and 51 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ func (h *Outbound) UnmarshalJSON(bytes []byte) error {
case C.TypeURLTest:
v = &h.URLTestOptions
default:
return nil
return E.New("unknown outbound type: ", h.Type)
}
err = UnmarshallExcluded(bytes, (*_Outbound)(h), v)
if err != nil {