1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-03 12:35:24 +00:00
Commit Graph

1354 Commits

Author SHA1 Message Date
Shelikhoo
ff704d15a7 add packet connection adaptor 2022-01-03 15:55:18 +00:00
Shelikhoo
6f4c7af5a3 add IPv6 packet addr encoding test 2022-01-03 15:55:18 +00:00
Shelikhoo
16bff33858 add IPv4 packet addr encoding test 2022-01-03 15:55:18 +00:00
Shelikhoo
fd763c9bab release packet buffer after usage 2022-01-03 15:55:18 +00:00
Shelikhoo
1ec1bbffa4 packet header encoder decoder 2022-01-03 15:55:18 +00:00
Shelikhoo
3ef7feaeaf
update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
Machtergreifung
25ae87aad2
fix typo (#1512)
* fix typo

* fix typo

* fix typo

* fix typo

* fix typo

* fix typo

* fic typo
2022-01-02 13:36:07 +00:00
KujouRinka
d24c276cc5
fix typo (#1503) 2022-01-02 17:16:12 +08:00
秋のかえで
423d566024
fix typo 2021-12-23 13:14:43 +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
Shelikhoo
65174fa487
rename buf type adaptor into FromBytes 2021-11-13 14:24:43 +00:00
Shelikhoo
802780e9e1
rename buf pool membership status to unmanaged 2021-11-13 14:23:29 +00:00
世界
d781cc0cfd
Add uTP sniffer 2021-11-13 14:22:36 +00:00
世界
dbc26775c9
Add quic sniffer 2021-11-13 14:21:57 +00:00
Ye Zhihao
ed9641dad1
Refactor strmatcher.MphMatcherGroup (#1364)
* Refactor strmatcher.MphMatcherGroup

* Add test for empty mph matcher group
2021-11-05 13:24:46 +08:00
ayanamist
80d92381af
Add PATCH TRACE http method to sniffer (#1314) 2021-11-05 13:22:30 +08:00
Ye Zhihao
d4da365c5f
Refactor: strmatcher module (#1333)
* Reorganize strmatcher's package structure

* Rename types in strmatcher package according to their file names

* Stablize strmatcher's Matcher interface

* Implement []matcherEntry as SimpleMatcherGroup

* Implement mph algorithm extracted from MphIndexMatcher as MphMatcherGroup

* Implement AddMatcher/AddFullMatcher/AddDomainMatcher/AddSubstrMatcher for each MatcherGroup

* Stablize strmatcher's MatcherGroup interface

* Stablize strmatcher's IndexMatcher interface

* Update strmatcher's benchmark

* Compatibility fix for app/router's DomainMatcher condition

* Fix code quality issue

* Fix basic matcher issues

* Update priority specification for Substr matcher
2021-10-31 18:01:13 +08:00
世界
a66bb28aee
Reformat code 2021-10-28 18:34:19 +08: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
Ye Zhihao
27614e56fc
🐛 http dialer add socket config; sockopt.mark use uint32 (#1264)
(cherry picked from commit 4d155bc2bf)
2021-09-27 21:37:45 +01:00
Shelikhoo
2fcc0ba1bb
add ip preprocessor logic 2021-09-18 21:04:30 +01:00
Shelikhoo
d9f293e135
add transport original name support 2021-09-07 16:53:09 +01:00
Shelikhoo
c89d629943
support more than one type for a config 2021-09-07 14:48:44 +01:00
Shelikhoo
9b93bb614a
improve reflection logic in registry 2021-09-07 14:45:56 +01:00
秋のかえで
35ba772e6e
feat: add Dokodemo simplified config 2021-09-07 13:51:05 +01:00
秋のかえで
383bd4ce62
feat: add network to Shadowsocks simplified config 2021-09-07 13:50:47 +01:00
Shelikhoo
b368ac3b7c
added general purpose tagged features config loader 2021-09-07 13:02:09 +01:00
Shelikhoo
bcc59b153b
added convert time resource loading instruction 2021-09-06 22:06:16 +01:00
Shelikhoo
6fe8010caa
improve error message for implementation set 2021-09-06 13:45:01 +01:00
Shelikhoo
179d6568fc
fix auto file content loader 2021-09-05 16:37:27 +01:00
Shelikhoo
a8c58c9ad4
skip file content reading if unnecessary 2021-09-05 16:37:27 +01:00
Shelikhoo
4c4d6c6944
use environment based operation in protofilter 2021-09-05 16:37:27 +01:00
Shelikhoo
141cd30ee3
refactor environment context 2021-09-05 16:37:27 +01:00
Shelikhoo
908dd96f1f
add context arg to LoadImplementationByAlias 2021-09-05 16:37:27 +01:00
Shelikhoo
e645e68c83
move protofilter to common 2021-09-05 16:37:26 +01:00
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