mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-26 03:55:26 -05:00
Add subscription manager
This commit is contained in:
committed by
Xiaokang Wang (Shelikhoo)
parent
b91354901c
commit
cc77e90254
@@ -85,8 +85,11 @@ func filterMessage(ctx context.Context, message protoreflect.Message) error {
|
||||
}
|
||||
|
||||
fsenvironment := envctx.EnvironmentFromContext(ctx)
|
||||
fsifce := fsenvironment.(filesystemcap.FileSystemCapabilitySet)
|
||||
fsifce, fsifceOk := fsenvironment.(filesystemcap.FileSystemCapabilitySet)
|
||||
for _, v := range fileReadingQueue {
|
||||
if !fsifceOk {
|
||||
return newError("unable to read file as filesystem capability is not given")
|
||||
}
|
||||
field := message.Descriptor().Fields().ByTextName(v.field)
|
||||
if v.filename == "" {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user