Xray-core/infra/conf
yuhan6665 b413066012
Fakedns fix xUDP destination override (#1011)
* Fix UDP destination override

* Fix code style

* Fix fakedns object init

Do type convertion at runtime in case if user don't use fakedns in config.
Since dispatcher now depend on fakedns object, move the injection order of
fakedns to top (As a temporary solution)

* Amend logic for handing fakedns client

A map is used by server side when client turn on fakedns
Client will send domain address in the buffer.UDP.Address, server record all possible target IP addrs.
When target replies, server will restore the domain and send back to client.

Co-authored-by: hmol233 <82594500+hmol233@users.noreply.github.com>
2022-04-23 19:24:46 -04:00
..
cfgcommon/duration Observatory related fixes (#788) 2021-10-26 13:00:31 +08:00
json Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
serial Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
api.go Observatory related fixes (#788) 2021-10-26 13:00:31 +08:00
blackhole.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
blackhole_test.go v1.1.0 2020-12-04 09:36:16 +08:00
buildable.go v1.0.0 2020-11-25 19:01:53 +08:00
common.go v1.1.0 2020-12-04 09:36:16 +08:00
common_test.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
conf.go v1.1.0 2020-12-04 09:36:16 +08:00
dns.go Feat: add reverse match for GeoIP 2021-10-22 13:06:57 +08:00
dns_proxy.go Merge dns (#722) 2021-10-16 21:02:51 +08:00
dns_proxy_test.go v1.1.0 2020-12-04 09:36:16 +08:00
dns_test.go Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
dokodemo.go Style: format code 2021-09-20 21:00:55 +08:00
dokodemo_test.go v1.1.0 2020-12-04 09:36:16 +08:00
errors.generated.go v1.1.0 2020-12-04 09:36:16 +08:00
fakedns.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
freedom.go Merge dns (#722) 2021-10-16 21:02:51 +08:00
freedom_test.go v1.1.0 2020-12-04 09:36:16 +08:00
general_test.go Style: format code 2021-09-20 21:00:55 +08:00
grpc.go grpc: add initial_windows_size option 2021-12-19 21:14:14 -05:00
http.go Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
http_test.go v1.1.0 2020-12-04 09:36:16 +08:00
init.go Add Fake DNS support (#309) 2021-03-07 04:39:50 +00:00
lint.go Add Fake DNS support (#309) 2021-03-07 04:39:50 +00:00
loader.go v1.0.0 2020-11-25 19:01:53 +08:00
log.go Enhance DNS and Dialer (#341) 2021-03-06 16:29:17 +00:00
loopback.go Add loopback outound 2021-10-22 17:58:37 +08:00
metrics.go feat: metrics including pprof, expvars 2022-03-29 00:01:14 -04:00
mtproto.go Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
mtproto_test.go v1.1.0 2020-12-04 09:36:16 +08:00
observatory.go Add concurrency option for outbound observation 2021-10-26 13:09:03 +08:00
policy.go v1.1.0 2020-12-04 09:36:16 +08:00
policy_test.go v1.1.0 2020-12-04 09:36:16 +08:00
reverse.go Style: format code 2021-09-20 21:00:55 +08:00
reverse_test.go v1.1.0 2020-12-04 09:36:16 +08:00
router.go Observatory related fixes (#788) 2021-10-26 13:00:31 +08:00
router_strategy.go Observatory related fixes (#788) 2021-10-26 13:00:31 +08:00
router_test.go Observatory related fixes (#788) 2021-10-26 13:00:31 +08:00
shadowsocks.go fix unsupported cipher method: xChaCha20-IETF-Poly1305 2021-12-16 18:57:06 -05:00
shadowsocks_test.go remove deprecate ciphers in shadowsocks (#710) 2021-09-17 04:13:07 +08:00
socks.go Add socks4/4a support 2021-10-22 13:27:31 +08:00
socks_test.go v1.1.0 2020-12-04 09:36:16 +08:00
transport.go Add gRPC Transport support (#356) 2021-03-14 15:02:07 +00:00
transport_authenticators.go v1.1.0 2020-12-04 09:36:16 +08:00
transport_internet.go Verify peer cert function for better man in the middle prevention (#746) 2021-10-22 12:38:40 +08:00
transport_test.go Style: format code 2021-09-20 21:00:55 +08:00
trojan.go Do not cause error when `json:"fallback"` is `null` (#361) 2021-03-10 16:17:27 +00:00
vless.go Do not cause error when `json:"fallback"` is `null` (#361) 2021-03-10 16:17:27 +00:00
vless_test.go v1.1.0 2020-12-04 09:36:16 +08:00
vmess.go VMess AEAD based packet length 2021-10-22 18:34:57 +08:00
vmess_test.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
xray.go Fakedns fix xUDP destination override (#1011) 2022-04-23 19:24:46 -04:00
xray_test.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00