1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-14 00:07:09 -05:00
Commit Graph

367 Commits

Author SHA1 Message Date
Vigilans
f8ac919d66
[app/dns] Support per-client configuration for fakedns (#2212)
* Move `filterIP` from `hosts.go` to `dnscommon.go`

* Implement adding pools for fakedns.HolderMulti

* Implement per-client fakedns for DNS app

* Remove `dns.ClientWithIPOption` and replace with new programming model

* Implement JSON config support for new fakedns config

* Fix lint and tests

* Fix some codacy analysis
2022-12-15 10:38:28 +08:00
Vigilans
5604863859
DNS: Support specifying domain matcher (#1979) 2022-11-30 14:34:24 +08:00
Vigilans
d3b50bb989
Feat: [app/dns] Support per-client configuration (#1977)
* DNS: Support per-client configuration

* Add deprecated feature warnings for `skipFallback`, `disableCache`, `disableFallback`, `disableFallbackIfMatch`
2022-11-30 08:43:39 +08:00
Jebbs
9bbc3af6cd
Fix: config merger fixes (#2084) 2022-11-05 19:12:11 +08:00
Huang-Huang Bao
f0236233f3 Fix: json.Reader: fill output bytes as much as possible
Fix JSON parsing state machine so Read([]byte) can accept byte array of any length.

This fixes a infinite read with io.ReadFull().
2022-09-07 10:50:17 +01:00
Shelikhoo
e3424a5ec8 chore: normalize generated .pb.go file to reduce unnecessary change 2022-09-06 20:26:52 +01:00
秋のかえで
8c6dfb2b6f
Fix: V5 config register (#1879) 2022-07-21 22:05:30 +08:00
秋のかえで
5157e5fffe
Fix: load auto format config with io.Reader (#1773) 2022-07-21 21:56:50 +08:00
秋のかえで
79320d34d4
Chore: bump gopkg.in/yaml.v2 to gopkg.in/yaml.v3 (#1828)
* Chore: bump gopkg.in/yaml.v2 to gopkg.in/yaml.v3

* Test: fix YAML test

* Test: refine json_test style
2022-07-13 21:21:32 +08:00
世界
fc6ae4d4e7
Fix lint 2022-06-28 21:36:12 +08:00
秋のかえで
2e1d542a5c Feat: add bytes support to v5 configuration 2022-06-25 19:43:51 +01:00
秋のかえで
28d197b6f3 Feat: add JSONC support to v5 configuration 2022-06-25 19:43:51 +01:00
Shelikhoo
3673ed2be8
Fix: Support both dokodemo inbound config types 2022-06-25 19:41:45 +01:00
Huang-Huang Bao
4ea9a5638e Fix: correct a type assertion of dokodemo simplified config
Fixes tproxy not working with jsonv5 config
2022-06-25 19:40:08 +01:00
Loyalsoldier
d9125f91af
Fix: gci command for formatting code (#1757)
* Fix: gci command for formatting code
* Chore: format code
2022-05-01 00:47:14 +08:00
Shelikhoo
f965d25af2 add jsonConf support for bindToDevice, bufSize 2022-01-23 20:33:01 +00:00
Shelikhoo
3ef7feaeaf
update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
Bo He
b057a37fd6
fix some typo (#1482) 2021-12-27 12:33:08 +08:00
Shelikhoo
4cf9992f89 add TCP Keep Alive support in config 2021-11-28 22:49:02 +00:00
秋のかえで
801d4a1d60
Chore: fix lint 2021-11-28 16:55:37 +08:00
Loyalsoldier
dce8764fd7
Lint: fix lint (#1427)
* Lint: replace golint with revive
* Lint: fix lint
2021-11-27 17:16:41 +08:00
Loyalsoldier
43447aa2e4
Chore: format code to fix lint (#1426) 2021-11-27 14:32:07 +08:00
世界
dbc26775c9
Add quic sniffer 2021-11-13 14:21:57 +00:00
世界
a66bb28aee
Reformat code 2021-10-28 18:34:19 +08:00
Shelikhoo
37f1b98cb2
relax test for mixed type content
Whether to allow mixed type data is contested. Since V2Ray does not use this kind of mix content in array by design, relaxing this test to avoid test break.
https://github.com/toml-lang/toml/issues/553
2021-10-21 23:34:53 +01:00
Shelikhoo
f7ba3d0341
fix test break for TOML JSON convertion
Based on 352072d51a/cmd/tomljson/main.go (L56)

Commit 0f7345ba76 updated toml library version, however, the library have changed its check logic for input. This issue is now fixed.
2021-10-21 23:30:35 +01:00
世界
cdb14de63e
Apply timeout to dns outbound (#1330)
Cherry-pick from 7b0699e8a5
2021-10-20 23:22:42 +01:00
Shelikhoo
ee185a5824
rework protocol buffer log settings 2021-10-02 22:29:37 +01:00
Shelikhoo
a9979057dc
fix torjan protobuf version
We could migrate to v2 version of protobuf interface now, but it would cause additional trouble. A quick fix is applied.
2021-09-28 18:34:56 +01:00
Shelikhoo
82e730bb70
fix: switch away from ioutil 2021-09-28 18:12:40 +01:00
Shelikhoo
0c3105691f
refactor: move from io/ioutil to io and os package (#1298)
Author: Eng Zer Jun <engzerjun@gmail.com>
Date:   Mon Sep 27 00:56:31 2021 +0800

    refactor: move from io/ioutil to io and os package (#1298)
2021-09-27 23:02:19 +01:00
秋のかえで
be4dd56ac7
Feat: custom TCP Fast Open queue length (#1293)
* Feat: custom TCP Fast Open queue length

* Feat: change default TFO queue length to 4096
2021-09-27 22:49:08 +01:00
世界
f383f896ed
Add disableFallbackIfMatch dns option 2021-09-27 22:10:54 +01:00
世界
9ee66f7efe
Add socks4/4a support 2021-09-27 21:54:29 +01:00
Ye Zhihao
1919d47649
cherry-pick adjustment for uint socket mask 2021-09-27 21:39:29 +01:00
Shelikhoo
89d9eba1a9
use custom loading rules for router 2021-09-09 14:45:19 +01:00
Shelikhoo
e314b1ef2f
Revert "rename gun, ws to full name"
This reverts commit d4d6e16295.
2021-09-07 16:36:26 +01:00
Shelikhoo
d4d6e16295
rename gun, ws to full name 2021-09-07 15:57:50 +01:00
秋のかえで
383bd4ce62
feat: add network to Shadowsocks simplified config 2021-09-07 13:50:47 +01:00
秋のかえで
679d713b89
feat: add Shadowsocks simplified config 2021-09-07 13:50:06 +01:00
Shelikhoo
98ee44befd
update test for router refactor 2021-09-07 13:43:28 +01:00
Shelikhoo
c05e37de45
add default value for content 2021-09-07 12:29:40 +01:00
Shelikhoo
30648c3e07
added custom balancer settings processing logic 2021-09-07 11:42:45 +01:00
Shelikhoo
68f28b1913
refactor common router structure into separate package 2021-09-07 09:13:58 +01:00
Shelikhoo
eb423bee54
update router to adapt to protobuf change 2021-09-07 08:02:38 +01:00
Shelikhoo
9bb67daa69
update dns to reflect change in proto 2021-09-07 07:59:57 +01:00
Shelikhoo
4835b8261d
switch to protojson based config for log dns router 2021-09-06 18:18:22 +01:00
Shelikhoo
6246b97494
rename reverse match to inverse match 2021-09-06 15:37:47 +01:00
Shelikhoo
e7232a5064
fix security settings 2021-09-05 16:37:28 +01:00
Shelikhoo
8982a38eb4
provide environment context on loading 2021-09-05 16:37:27 +01:00