Xray-core/app/router/command
yuhan6665 42aea01fb5
Core: Add mutex to injection resolution (#4206)
* Revert "Add RequireFeaturesAsync() that works regardless order of app init"

* Add mutex to injection resolution

- Turns out we already support async DI resolution regardless of feature ordering
Previous code contain a race condition causing some resolution is lost
- Note that the new mutex cover s.pendingResolutions and s.features
but must not cover callbackResolution() due to deadlock
- Refactor some method names and simplify code

* Add OptionalFeatures injection

For example OptionalFeatures() is useful for fakedns module
2024-12-26 12:55:12 +00:00
..
command_grpc.pb.go Chore: Generate *.pb.go files with protoc v5.28.2 2024-10-16 04:06:21 +00:00
command_test.go Fix typos (#3527) 2024-07-12 00:20:06 +02:00
command.go Core: Add mutex to injection resolution (#4206) 2024-12-26 12:55:12 +00:00
command.pb.go Chore: Generate *.pb.go files with protoc v5.28.2 2024-10-16 04:06:21 +00:00
command.proto API - Add | Remove Routing Rules (#3189) 2024-03-29 11:17:36 -04:00
config.go Log: show the matching rule tag (#3809) 2024-09-13 13:05:19 -04:00