Commit Graph
351 Commits
Author SHA1 Message Date
秋のかえで 294efeefd7 Test: fix leastload strategy unit test 2022-11-03 20:30:28 +08:00
JebbsandGitHub f9422d60aa fix selectLeastLoad() returns wrong number of nodes (#2083) 2022-10-20 12:00:21 +08:00
LoyalsoldierandGitHub 1643b486cb Refactor: replace netaddr package with netipx (#1994) 2022-09-18 10:26:33 +08:00
Huang-Huang BaoandXiaokang Wang (Shelikhoo) 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
秋のかえでandGitHub 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 BaoandXiaokang Wang (Shelikhoo) 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
KujouRinkaandGitHub d24c276cc5 fix typo (#1503) 2022-01-02 17:16:12 +08:00
LoyalsoldierandGitHub dce8764fd7 Lint: fix lint (#1427)
* Lint: replace golint with revive
* Lint: fix lint
2021-11-27 17:16:41 +08:00
LoyalsoldierandGitHub 43447aa2e4 Chore: format code to fix lint (#1426) 2021-11-27 14:32:07 +08:00
Ye ZhihaoandGitHub 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
LoyalsoldierandShelikhoo 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
LoyalsoldierandShelikhoo 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
JebbsandShelikhoo 2523d77919 improve commands
(rebased from ebbf31f07e)
2021-09-04 11:11:45 +01:00
JebbsandShelikhoo 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
JebbsandShelikhoo b05a469488 v5: Remove v2ctl & wv2ray (rebased from 7c1ab06206) 2021-09-04 11:09:55 +01:00
database64128andGitHub 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
LoyalsoldierandGitHub 470acefef6 Fix: use sorted cidr list (#1156) 2021-07-22 10:43:21 +08:00