1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-26 01:15:38 +00:00

fix auto file content loader

This commit is contained in:
Shelikhoo 2021-09-05 16:29:12 +01:00
parent a8c58c9ad4
commit 179d6568fc
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -26,7 +26,7 @@ func filterMessage(ctx context.Context, message protoreflect.Message) error {
var fileReadingQueue []fileRead
message.Range(func(descriptor protoreflect.FieldDescriptor, value protoreflect.Value) bool {
v2extension, ferr := protoext.GetFieldOptions(descriptor)
if ferr != nil {
if ferr == nil {
if v2extension.Forbidden {
if value.Bool() {
err = newError("a forbidden value is set ", descriptor.FullName())