1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-10 06:16:53 -05:00
Commit Graph

356 Commits

Author SHA1 Message Date
povsister
863479bb81 fix fallbackTag missing on leastping balancer
This fix fallbackTag not working when balancer type is set to "leastping"
2024-08-19 21:29:55 +01:00
Shelikhoo
85b04d1af9 Fix coding style lints 2024-03-15 20:19:18 +00:00
Mark Ma
a339721af8
feat: RandomStrategy AliveOnly (#2850)
* feat: strategy_randomalive

* feat: RandomStrategy AliveOnly

* fix: unobserved candidate not alive

* fix: StrategySettings nil panic

* fix: TestRouterConfig

* fix: alive_only typo
2024-03-10 11:00:06 +00:00
Shelikhoo
cb84b28de4
Update generated protobuf files to v1.31.0 2023-10-24 19:50:30 +01:00
Rinka
87155bfc71
fix(router): panic caused by concurrent map read and write (#2678) 2023-08-31 18:01:06 +08:00
秋のかえで
294efeefd7
Test: fix leastload strategy unit test 2022-11-03 20:30:28 +08:00
Jebbs
f9422d60aa
fix selectLeastLoad() returns wrong number of nodes (#2083) 2022-10-20 12:00:21 +08:00
Loyalsoldier
1643b486cb
Refactor: replace netaddr package with netipx (#1994) 2022-09-18 10:26:33 +08:00
Huang-Huang Bao
ddc6312c5d Fix: guard against nil pointer dereference of (*NetworkList) 2022-09-07 10:50:17 +01:00
Shelikhoo
137cd7093c
chore: regenerate protobuf file 2022-09-06 20:36:27 +01:00
秋のかえで
adb7871f82
Feat: refine cipher and network config (#1436) 2022-08-19 20:41:18 +08:00
世界
fc6ae4d4e7
Fix lint 2022-06-28 21:36:12 +08:00
Huang-Huang Bao
5d3915c751 Fix: build routing condition for geo domain 2022-06-25 19:42:40 +01:00
Shelikhoo
dae391fa41 Fix Simplified Router Bug in Processing Rules 2022-04-28 19:32:55 +01:00
Shelikhoo
3ef7feaeaf
update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
KujouRinka
d24c276cc5
fix typo (#1503) 2022-01-02 17:16:12 +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
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
Loyalsoldier
41ae53e60d
Fix: IP length not deterministic (#1267)
The length of IPv4 address in Go standard library could be 16
if it is in IPv6-mapped-IPv4 format.

(cherry picked from commit c58a372d93)
2021-09-27 21:53:49 +01:00
Shelikhoo
0f7345ba76
adjustment: ♻️ refactor geoip match logic (#1157)
cherry-pick f1902165c7
2021-09-27 21:50:18 +01:00
Loyalsoldier
a86415cb43
♻️ refactor geoip match logic (#1157)
cherry-pick f1902165c7
2021-09-27 21:43:05 +01:00
Shelikhoo
2fcc0ba1bb
add ip preprocessor logic 2021-09-18 21:04:30 +01:00
Shelikhoo
89d9eba1a9
use custom loading rules for router 2021-09-09 14:45:19 +01:00
Shelikhoo
434d9e8700
add grpc service register 2021-09-07 14:43:45 +01:00
Shelikhoo
98ee44befd
update test for router refactor 2021-09-07 13:43:28 +01:00
Shelikhoo
6c934f9db0
register strategy config 2021-09-07 11:48:24 +01:00
Shelikhoo
30648c3e07
added custom balancer settings processing logic 2021-09-07 11:42:45 +01:00
Shelikhoo
5182727054
fix CountryCode not set 2021-09-07 11:09:34 +01:00
Shelikhoo
68f28b1913
refactor common router structure into separate package 2021-09-07 09:13:58 +01:00
Shelikhoo
fd63ad7160
added simplified config register 2021-09-07 08:42:34 +01:00
Shelikhoo
935cf69fb1
update router to adapt to protobuf change 2021-09-07 08:01:40 +01:00
Shelikhoo
b819ac60b9
added simplified config for dns and router 2021-09-06 22:34:28 +01:00
Shelikhoo
6246b97494
rename reverse match to inverse match 2021-09-06 15:37:47 +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
a4e6fe5a94
reference google version of protobuf library 2021-09-04 11:13:31 +01:00
Shelikhoo
881571374d
rename Router Enum name Domain to prevent name collision
This creates build break in C++ environment.
2021-09-04 11:13:31 +01:00
Shelikhoo
ba2dd5995d
replace TypedMessage with anypb.Any 2021-09-04 11:13:28 +01:00
Shelikhoo
b61d55c6a7
fix strategy least load 2021-09-04 11:12:36 +01:00
Shelikhoo
8adb3dc5a6
fix strategy selector 2021-09-04 11:12:36 +01:00
Shelikhoo
fc8d23bcc5
added apply least ping strategy 2021-09-04 11:12:35 +01:00
Shelikhoo
44040ca684
return zero length value when observer is not found 2021-09-04 11:12:35 +01:00
Shelikhoo
4b89f9085f
multi-observer aware load balancer strategy 2021-09-04 11:12:33 +01:00
Shelikhoo
775b9f54df
update API command 2021-09-04 11:12:33 +01:00
Shelikhoo
b122200c2a
support principle target output 2021-09-04 11:12:32 +01:00
Shelikhoo
ea5bb04acf
incorporate changes in router implementation 2021-09-04 11:12:32 +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