mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-01-04 19:29:48 +00:00
42aea01fb5
* 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 |
||
---|---|---|
.. | ||
fakedns | ||
config.go | ||
config.pb.go | ||
config.proto | ||
dns_test.go | ||
dns.go | ||
dnscommon_test.go | ||
dnscommon.go | ||
hosts_test.go | ||
hosts.go | ||
nameserver_doh_test.go | ||
nameserver_doh.go | ||
nameserver_fakedns.go | ||
nameserver_local_test.go | ||
nameserver_local.go | ||
nameserver_quic_test.go | ||
nameserver_quic.go | ||
nameserver_tcp_test.go | ||
nameserver_tcp.go | ||
nameserver_udp.go | ||
nameserver.go |