mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-14 03:29:37 +03:00
Improve usages of json.Unmarshal
This commit is contained in:
@@ -26,5 +26,5 @@ func (o *UDPOverTCPOptions) UnmarshalJSON(bytes []byte) error {
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
return json.Unmarshal(bytes, (*_UDPOverTCPOptions)(o))
|
||||
return json.UnmarshalDisallowUnknownFields(bytes, (*_UDPOverTCPOptions)(o))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user