Commit Graph
100 Commits
Author SHA1 Message Date
Shelikhoo e7ffcfd4f6 add packet encoding support in simplified socks5 server config 2022-01-03 15:55:18 +00:00
Shelikhoo 31d248aac7 packetaddr: auto generated 2022-01-03 15:55:18 +00:00
Shelikhoo ec9b64e5ec Add packet addr dispatcher 2022-01-03 15:55:18 +00:00
Shelikhoo 75a2448c48 change CreatePacketAddrConn signature 2022-01-03 15:55:18 +00:00
Shelikhoo 8bf3da7c7f add socks packetaddr config 2022-01-03 15:55:18 +00:00
Shelikhoo 6ff1cfa253 add Closable to dispatcher interface 2022-01-03 15:55:18 +00:00
Shelikhoo bf8a0b7290 apply dispatcher interface 2022-01-03 15:55:18 +00:00
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 ac65036808 refactor UDP dispatcher to support fullcone dispatcher 2022-01-03 15:55:18 +00:00
Shelikhoo 4b03da7400 revert incorrect change introduced in 3ef7feaeaf 2022-01-02 15:20:59 +00:00
Shelikhoo 3ef7feaeaf update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
Shelikhoo 9f0d7e7f40 update version 2022-01-02 15:08:42 +00:00
Shelikhoo 9f6c65eeef remove time based check in VMess MD5 decommission enforcement 2022-01-02 15:06:47 +00:00
Shelikhoo 144a7929d8 Fix DoS attack vulnerability in CommandSwitchAccountFactory 2021-12-05 19:40:10 +00:00
Shelikhoo b960d3f1fb Add tcp transport registration 2021-11-28 22:49:16 +00:00
Shelikhoo 718922b047 use sys/unix instead of syscall
Suggestion from:
https://github.com/v2fly/v2ray-core/pull/1395#issuecomment-974761647
2021-11-28 22:49:02 +00:00
Shelikhoo a47fcffe50 use sys/unix instead of syscall
Suggestion from:
https://github.com/v2fly/v2ray-core/pull/1395#issuecomment-974761647
2021-11-28 22:49:02 +00:00
Shelikhoo 4cf9992f89 add TCP Keep Alive support in config 2021-11-28 22:49:02 +00:00
Shelikhoo 44272fa82f embed macOS const to avoid platform inconsistency(again) 2021-11-28 22:49:02 +00:00
Shelikhoo fb4ad3f5fa embed macOS const to avoid platform inconsistency 2021-11-28 22:49:02 +00:00
Shelikhoo 3e42fc417b fix bug introduced in adding tcp keep alive adjustment 2021-11-28 22:49:02 +00:00
Shelikhoo 6e7e864f2f Add TCP keep alive idle setting: auto generated 2021-11-28 22:49:02 +00: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
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 https://github.com/pelletier/go-toml/blob/352072d51afc24d769bd644d0ee25b5f77749fa7/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
Shelikhoo 054e667983 update version: V5
This is a pre-release version of V2Ray intended for developer preview. Users are not advised to use this version right now. Contributors are encouraged to send pull requests to the V5 Version of the codebase.
2021-10-21 22:52:01 +01:00
Shelikhoo 25e2b74c95 kcp v5 config register: auto generated 2021-10-10 15:00:32 +01:00
Shelikhoo e0cec7f3f6 kcp v5 config register 2021-10-10 15:00:17 +01:00
Shelikhoo ee185a5824 rework protocol buffer log settings 2021-10-02 22:29:37 +01:00
Shelikhoo 52d414fa49 integrate ioutil migration in test
Some inconsistent change have been introduced in a previous version of ioutil migration(0c3105691f).
2021-09-29 09:25:23 +01:00
Shelikhoo 2fcddf1966 return error if the tag is not found
The previous routine cause panic if the tag is not found. Thanks for report from mzz
2021-09-29 09:14:23 +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 40140c2977 better error reason reporting for auto config format
Without this change, the user will not be able to know the detail of error if auto config format detection is used.
2021-09-28 18:32:38 +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
Shelikhoo 0f9db48acd update version 2021-09-27 22:11:38 +01:00
Shelikhoo 0f7345ba76 adjustment: ♻️ refactor geoip match logic (#1157)
cherry-pick f1902165c7
2021-09-27 21:50:18 +01:00
Shelikhoo 2fcc0ba1bb add ip preprocessor logic 2021-09-18 21:04:30 +01:00
Shelikhoo cb5875fe62 fix incomplete revert for name change 2021-09-13 17:01:09 +01:00
Shelikhoo a7eae67723 add back "door" to dokodemo-door's name
kslr said that without door it would lose its spirit
2021-09-13 16:55:43 +01:00
Shelikhoo 6dc2dfb6c7 use custom loading rules for dns 2021-09-10 20:35:02 +01:00
Shelikhoo 89d9eba1a9 use custom loading rules for router 2021-09-09 14:45:19 +01:00
Shelikhoo 33a42e05da chore: tidy up go.mod 2021-09-08 19:37:06 +01:00
Shelikhoo e0c76fd1e6 integrate chi restful api 2021-09-08 19:37:06 +01:00
Shelikhoo d9f293e135 add transport original name support 2021-09-07 16:53:09 +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
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
Shelikhoo 434d9e8700 add grpc service register 2021-09-07 14:43:45 +01:00
Shelikhoo 8ed83b6d0a register commander 2021-09-07 14:33:00 +01:00
Shelikhoo eeaa1e96e4 add register for reverse, instman, fakedns 2021-09-07 14:19:56 +01:00
Shelikhoo 98ee44befd update test for router refactor 2021-09-07 13:43:28 +01:00
Shelikhoo 3c56a7f947 register observatory: auto generated 2021-09-07 13:19:43 +01:00
Shelikhoo 62eaa9a8cc register observatory 2021-09-07 13:19:31 +01:00
Shelikhoo 68c8759f4b add custom jsonpb unmarshaler for multi-observatory 2021-09-07 13:16:47 +01:00
Shelikhoo df03970c22 register multi observatory 2021-09-07 13:03:03 +01:00
Shelikhoo b368ac3b7c added general purpose tagged features config loader 2021-09-07 13:02:09 +01:00
Shelikhoo c05e37de45 add default value for content 2021-09-07 12:29:40 +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 cbdb3113a3 fix dns register as log 2021-09-07 08:05:18 +01:00
Shelikhoo 350ac46b41 update dns to adapt to protobuf change 2021-09-07 08:03:29 +01:00
Shelikhoo eb423bee54 update router to adapt to protobuf change 2021-09-07 08:02:38 +01:00
Shelikhoo 935cf69fb1 update router to adapt to protobuf change 2021-09-07 08:01:40 +01:00
Shelikhoo aa17eacc8d register dns 2021-09-07 08:00:17 +01:00
Shelikhoo 9bb67daa69 update dns to reflect change in proto 2021-09-07 07:59:57 +01:00
Shelikhoo b819ac60b9 added simplified config for dns and router 2021-09-06 22:34:28 +01:00
Shelikhoo bcc59b153b added convert time resource loading instruction 2021-09-06 22:06:16 +01:00
Shelikhoo 4835b8261d switch to protojson based config for log dns router 2021-09-06 18:18:22 +01:00
Shelikhoo 845d031357 register log: auto generated 2021-09-06 16:54:20 +01:00
Shelikhoo 28e01f38bb register log 2021-09-06 16:54:01 +01:00
Shelikhoo 6246b97494 rename reverse match to inverse match 2021-09-06 15:37:47 +01:00
Shelikhoo 31f3edd481 add service registration for policy: auto generated 2021-09-06 14:49:14 +01:00
Shelikhoo 72059d42a6 add service registration for policy 2021-09-06 14:49:01 +01:00
Shelikhoo 9f8f420ed3 return on prefix mismatch 2021-09-06 14:16:21 +01:00
Shelikhoo 1cb3ee5f6d update generated protobuf file 2021-09-06 14:04:53 +01:00
Shelikhoo 07c96195cf added instance state to restful controller 2021-09-06 14:04:30 +01:00
Shelikhoo 8c857858dc added implementation registration for stats: auto generated 2021-09-06 14:02:13 +01:00
Shelikhoo 78ef0c89b5 added implementation registration for stats 2021-09-06 14:02:00 +01:00
Shelikhoo 3bab114fe0 add restful api into distro 2021-09-06 13:48:33 +01:00
Shelikhoo 6fe8010caa improve error message for implementation set 2021-09-06 13:45:01 +01:00
Shelikhoo 13f05c1b9d added service registration 2021-09-06 13:42:05 +01:00
Shelikhoo 779a7c84ed added service initialization 2021-09-06 13:40:44 +01:00
Shelikhoo ea1099d924 integrate restful api with v2 service: auto generated 2021-09-06 13:11:50 +01:00
Shelikhoo 75a571a4ce integrate restful api with v2 service 2021-09-06 13:11:30 +01:00
Shelikhoo e7232a5064 fix security settings 2021-09-05 16:37:28 +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 ef738cce7a add declarative config for converter 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 8982a38eb4 provide environment context on loading 2021-09-05 16:37:27 +01:00