Commit Graph
100 Commits
Author SHA1 Message Date
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
Shelikhoo 141cd30ee3 refactor environment context 2021-09-05 16:37:27 +01:00
Shelikhoo 6a4364f37a move scoped storage to independent package 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 22b9fc380b fix typo in interface type for service 2021-09-05 12:03:36 +01:00
Shelikhoo 7b4b661d6f register browser forwarder: auto generated 2021-09-05 11:36:00 +01:00
Shelikhoo 0aa7e26b5a register browser forwarder 2021-09-05 11:35:04 +01:00
Shelikhoo b90ae53c7d updated converter support for v5json 2021-09-05 11:27:56 +01:00
Shelikhoo 2c0dec18b5 added special handling for none security: remove duplicate 2021-09-05 11:09:20 +01:00
Shelikhoo 8609a59322 added special handling for none security 2021-09-05 11:08:29 +01:00
Shelikhoo 4ba76099e4 Revert "none security config"
This reverts commit 9b883af99c.
2021-09-05 10:59:02 +01:00
Shelikhoo 4c0652c51b Revert "none security config: auto generated"
This reverts commit 45bcff3804.
2021-09-05 10:58:58 +01:00
Shelikhoo 45bcff3804 none security config: auto generated 2021-09-05 10:40:15 +01:00
Shelikhoo 9b883af99c none security config 2021-09-05 10:40:06 +01:00
Shelikhoo 1f70ab99e8 fix error typo for browser forwarder(Sec-Websocket-Protocol) 2021-09-05 10:31:40 +01:00
Shelikhoo 7aeb7d9ce6 add tls config register: auto generated 2021-09-05 10:26:44 +01:00
Shelikhoo 690995d8ce add tls config register 2021-09-05 10:26:17 +01:00
Shelikhoo 56e5c0e017 add websocket config register 2021-09-05 10:19:04 +01:00
Shelikhoo 40db658135 add auto register for transport 2021-09-05 10:18:47 +01:00
Shelikhoo 3c94ff6a35 add default settings for transport and security 2021-09-05 10:02:05 +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 22f79b3303 add simplified socks 2021-09-05 00:44:29 +01:00
Shelikhoo 1e306a55e8 add default settings 2021-09-05 00:42:40 +01:00
Shelikhoo 8c57d03418 update register logic 2021-09-05 00:42:21 +01:00
Shelikhoo 9d771f2f9f avoid name conflict with .v5.json 2021-09-04 22:56:23 +01:00
Shelikhoo 653bbba843 use two-step register to register explicitly 2021-09-04 22:55:12 +01:00
Shelikhoo 45dae48d21 added build context to dns 2021-09-04 21:54:21 +01:00