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

1317 Commits

Author SHA1 Message Date
Shelikhoo
08b841aee1
added filesystem default implementation 2021-09-05 16:37:26 +01:00
Shelikhoo
70c66853f9
isolate filesystem interface package 2021-09-05 16:37:26 +01:00
Shelikhoo
78cefbaa91
add proto reflection based configure file parsing rule: auto generated 2021-09-05 16:37:26 +01:00
Shelikhoo
690d92718b
add proto reflection based configure file parsing rule 2021-09-05 16:37:26 +01:00
Shelikhoo
98bf3dc79a
add auto register hook 2021-09-05 00:47:15 +01:00
Shelikhoo
a4c66656b1
add delayed and reflective auto registration
Delay is required for all init to finish, otherwise protoreflect() can return nil.
2021-09-05 00:46:25 +01:00
Shelikhoo
0250c6a4d7
fix address not applied 2021-09-05 00:45:01 +01:00
Shelikhoo
653bbba843
use two-step register to register explicitly 2021-09-04 22:55:12 +01:00
Shelikhoo
1876fbd6cd
added custom ip or domain unmarshal logic 2021-09-04 20:30:39 +01:00
Shelikhoo
4d3c57dd39
register implementation automatically 2021-09-04 20:05:17 +01:00
Shelikhoo
6a2cca1220
load from network will be replaced with subscription 2021-09-04 19:33:33 +01:00
Shelikhoo
cef6a46548
add support for custom loader in json parser 2021-09-04 19:22:41 +01:00
Shelikhoo
7e9f4acd9b
added custom loader for components 2021-09-04 19:06:49 +01:00
Shelikhoo
1e562e7dd5
added implementation registry 2021-09-04 15:21:58 +01:00
Shelikhoo
e0700ccc4b
regenerate protobuf file 2021-09-04 11:26:13 +01:00
Shelikhoo
1531cb0ca4
update protobuf version 2021-09-04 11:13:51 +01:00
Shelikhoo
d1a4b0388a
add app environment definitions 2021-09-04 11:13:31 +01:00
Shelikhoo
9d7e0d6f7a
add domain prefix to v2 types 2021-09-04 11:13:31 +01:00
Shelikhoo
a4e6fe5a94
reference google version of protobuf library 2021-09-04 11:13:31 +01:00
Shelikhoo
6472e8ecd3
added V2 protobuf extensions 2021-09-04 11:13:31 +01:00
Shelikhoo
d0521c3861
added protobuf descriptor into repo 2021-09-04 11:13:31 +01:00
Shelikhoo
b36b434689
jsonpb format 2021-09-04 11:13:30 +01:00
Shelikhoo
32374eb545
added jsonpb format support 2021-09-04 11:13:29 +01:00
Shelikhoo
ba2dd5995d
replace TypedMessage with anypb.Any 2021-09-04 11:13:28 +01:00
Shelikhoo
ba0d5a3275
tagged features creator & config 2021-09-04 11:12:33 +01:00
Shelikhoo
32fcdeb15a
tagged features: auto generated file 2021-09-04 11:12:33 +01:00
Shelikhoo
72964b5325
tagged features 2021-09-04 11:12:33 +01:00
Shelikhoo
9cb1566a78
moving health ping to observatory as a standalone component 2021-09-04 11:12:30 +01:00
Shelikhoo
718d6f32bf
update coding style 2021-09-04 11:12:04 +01:00
Jebbs
2523d77919
improve commands
(rebased from ebbf31f07e)
2021-09-04 11:11:45 +01:00
Jebbs
fa0cf6db26
v5: Health Check & LeastLoad Strategy (rebased from 2c5a714903)
Some changes will be necessary to integrate it into V2Ray
2021-09-04 11:11:45 +01:00
young-zy
12dfbc78a3
Update protobuf version (rebased from 6d25d51519)
Some change is not adopted since it would break the code base. These changes will be reintroduced at a later date.
2021-09-04 11:09:58 +01:00
Jebbs
b05a469488
v5: Remove v2ctl & wv2ray (rebased from 7c1ab06206) 2021-09-04 11:09:55 +01:00
Jebbs
557b0c3353
V5: YAML support (rebased from 9367e9b1f2) 2021-09-04 11:05:52 +01:00
CalmLong
96a4ab8a77
remove "v2ray.com/core" in log (rebased from 9c1ad3ab93) 2021-09-04 11:05:38 +01:00
database64128
c78ee5aac7
🏡 Housekeeping: Update to Go 1.17 (#1215)
* ⬆ Update to Go 1.17

* 🏗 Update workflows and add windows-arm64

* 💾 Update generated files

* 📛 Update not-so-friendly filenames
2021-08-21 13:20:40 +08:00
Loyalsoldier
639148dda4
Refinement: LRU (#1142) 2021-08-10 11:08:45 +08:00
Shelikhoo
1409be04c2
regenerate protobuf files 2021-07-01 18:58:48 +01:00
Shelikhoo
3c17276462
drain: add generated file 2021-06-22 12:26:21 +01:00
Shelikhoo
79174ab2a0
unified drain support for vmess and shadowsockets 2021-06-22 12:26:17 +01:00
Shelikhoo
0822160008
VMess AEAD based packet length 2021-06-22 12:26:01 +01:00
Loyalsoldier
6f8979d017
Style: format code by gofumpt (#1022) 2021-05-20 05:28:52 +08:00
Loyalsoldier
a771e3401a
Fix: lint error (#995) 2021-05-11 08:36:06 +08:00
Shelikhoo
916d3857a0
Revert "show warning for asset directory transversal to prepare for network api based reload in v5"
This reverts commit a720d1e2
2021-05-05 13:29:36 +01:00
Shelikhoo
a720d1e2d6
show warning for asset directory transversal to prepare for network api based reload in v5 2021-05-05 13:17:54 +01:00
Loyalsoldier
8ce32e0d4c
Fix: GetAssetLocation (#974) 2021-05-05 00:51:58 +01:00
Loyalsoldier
1cb9fd2999
Chore: little refinements (#973) 2021-05-05 07:28:09 +08:00
loyalsoldier
bf9a27a6db
Revert "Revert "Fix: GetAssetLocation for external geo files (#968)""
This reverts commit 70245fd30e.
2021-05-05 06:39:00 +08:00
Shelikhoo
44514ebc1a
Merge branch 'dev-wsearlydatadiverse' 2021-05-04 22:50:06 +01:00
Shelikhoo
9458963b5a
Revert "Refactor: memory-efficient geo file decoder (#934)"
This reverts commit 7e876709
2021-05-04 19:07:54 +01:00
Shelikhoo
355a9c853b
Revert "Refinement: geodata decoder removes unnecessary GC & exports methods for 3rd party (#965)"
This reverts commit de71e638
2021-05-04 19:07:49 +01:00
Shelikhoo
ace2c44c2b
Revert "Refine geodata related tests (#967)"
This reverts commit 7805ca2a
2021-05-04 19:07:35 +01:00
Shelikhoo
70245fd30e
Revert "Fix: GetAssetLocation for external geo files (#968)"
This reverts commit 51c8ab83
2021-05-04 19:07:31 +01:00
Loyalsoldier
51c8ab8338
Fix: GetAssetLocation for external geo files (#968) 2021-05-04 19:05:50 +08:00
Loyalsoldier
7805ca2ac1
Refine geodata related tests (#967) 2021-05-04 16:30:23 +08:00
Loyalsoldier
de71e63893
Refinement: geodata decoder removes unnecessary GC & exports methods for 3rd party (#965) 2021-05-04 01:39:47 +08:00
rurirei
238b87d26a
Fix: geodata reader for multi-platform compatibility (#964) 2021-05-04 00:12:47 +08:00
Shelikhoo
b3957e029c
update browser forwarder script 2021-05-01 15:59:10 +01:00
Loyalsoldier
a585ca28a8
Fix: code not found in geo files (#953) 2021-05-01 17:54:47 +08:00
Loyalsoldier
7e876709fe
Refactor: memory-efficient geo file decoder (#934) 2021-05-01 07:59:29 +08:00
Shelikhoo
6dcdd2afad
Merge branch 'dev-advloadblancer-2' 2021-04-13 15:09:32 +01:00
Loyalsoldier
4bbe672ffd
Test: add test to avoid the error of missing geoip & geosite (#895) 2021-04-13 10:52:01 +08:00
Loyalsoldier
7790d33185
Fix: v2ray.location.asset env not working (#889) 2021-04-12 10:01:30 +08:00
Loyalsoldier
f71b45f3e7
Chore: fix typos (#878) 2021-04-09 09:47:36 +08:00
Shelikhoo
a553ccc4c4
report transportation error to observer 2021-04-08 23:17:00 +01:00
Loyalsoldier
10ca68f277
Feat: remove geo files from repo & refine tests (#869) 2021-04-07 03:08:03 +08:00
Kslr
b8af713998
Fix: secured loading path under windows (#851)
* Fix: secured loading path under windows

* fix sign file foramts
2021-04-04 16:32:42 +08:00
Shelikhoo
93e44b72d9
rework the file name checking logic 2021-04-03 10:14:23 +01:00
kslr
78c1993431 fix logs prefix matching order 2021-04-02 22:24:14 +08:00
kslr
01380177b8 refine package prefix cleanup 2021-04-02 22:04:53 +08:00
Shelikhoo
0b39c3beb0
Update bundled browserforwarder firmware 2021-04-02 14:07:21 +01:00
Loyalsoldier
c80a6df749
Chore: format code (#842) 2021-04-02 20:49:45 +08:00
Kslr
1b665d1d36
remove package path from logs (#840) 2021-04-02 20:44:33 +08:00
Shelikhoo
3476a0e1d1
Update bundled browserforwarder firmware 2021-04-02 12:24:39 +01:00
Shelikhoo
d55d5423fb
use shadowsocket's bloomring for shadowsocket's replay protection 2021-04-01 21:01:39 +01:00
Shelikhoo
e4681e8cd3
added shadowsockets iv check for tcp socket 2021-04-01 20:59:35 +01:00
loyalsoldier
090a659cab
Chore: fix lint 2021-03-28 09:33:00 +08:00
loyalsoldier
a0c817888b
Chore: format code 2021-03-28 08:44:04 +08:00
loyalsoldier
24948c6520
Merge branch 'master' into dev-wsimprovement 2021-03-28 08:40:05 +08:00
Loyalsoldier
ad09269791
Chore: refine errorgen (#821) 2021-03-24 15:18:07 +08:00
Shelikhoo
aac35a833d
added hash of browser forwarding asset to embedded hash 2021-03-20 22:05:04 +00:00
Shelikhoo
f63ee69fcf
added forwarder service 2021-03-20 21:59:30 +00:00
Shelikhoo
2d778239a3
added necessary infrastructure 2021-03-20 21:58:07 +00:00
Loyalsoldier
9e9173acb4
Chore: update protobuf & dependencies (#793)
* Chore: update protobuf
* Chore: regenerate mock files
* Chore: update dependencies
* Chore: use Go v1.16.2 and later
2021-03-18 12:17:26 +08:00
DarthVader
c71ae9b310
Fix: core panics when zero domain/full type of rule (#786) 2021-03-16 19:07:32 +08:00
DarthVader
ac1e5cd925
Add minimal perfect hash domain matcher (#743)
* rename to HybridDomainMatcher & convert domain to lowercase

* refactor code & add open hashing for rolling hash map

* fix lint errors

* update app/dns/dns.go

* convert domain to lowercase in `strmatcher.go`

* keep the original matcher behavior

* add mph domain matcher & conver domain names to loweercase when matching

* fix lint errors

* fix lint errors
2021-03-15 15:21:38 +08:00
Loyalsoldier
e46204f828
Chore: fix lint according to golangci-lint errors (#781)
* Chore: fix lint according to golangci-lint errors
* Chore: regenerate pb.go files
2021-03-14 07:44:47 +08:00
Loyalsoldier
88e1e25aa9
Chore: format import using goimports (#780) 2021-03-14 07:09:51 +08:00
Loyalsoldier
e03947e6b0
Chore: update protobuf & dependencies (#748) 2021-03-08 05:12:27 +08:00
Shelikhoo
867bbb429e
create session content in the context if do not exist yet 2021-03-06 14:33:20 +00:00
Shelikhoo
b585f2283a
fixing misbehaving code in mux that do not propagate context 2021-03-06 14:31:46 +00:00
Shelikhoo
7dabfb755e
merge vmess zero encryption support 2021-03-04 00:12:37 +00:00
Shelikhoo
0010783191
Merge chained proxy with transport support 2021-03-03 23:27:26 +00:00
DarthVader
a31a8e6f89
A memory-efficient and fast hybrid matcher (#639)
* a faster DomainMatcher implementation

* rename benchmark name

* fix linting errors

* add hybrid matcher

* add rabin-karp algorithm

* rename test & fix linting errors

* add more comment

* format code

* revert `MatcherGroup` match func

* fix linting errors
2021-03-04 05:39:51 +08:00
Loyalsoldier
49cf614346
Chore: update dependencies & protobuf (#728) 2021-03-03 17:31:53 +08:00
Shelikhoo
770a2bc1a3
Regenerate protobuf for Zero Security imaginary security level 2021-03-01 15:32:19 +00:00
Shelikhoo
833997df5a
Zero Security imaginary security level 2021-03-01 15:30:36 +00:00
Shelikhoo
616b0d122e
Fix for context with empty content 2021-02-28 20:42:32 +00:00
Shelikhoo
dd51d32250
Added Transport Layer Chained Proxy Support 2021-02-28 18:47:31 +00:00
Kid
d2a4e6bc47
Add /opt to assets location (#715) 2021-02-27 17:09:48 +08:00