Commit Graph
258 Commits
Author SHA1 Message Date
Loyalsoldier 6dce0d98c1 Fix: format & lint (#1759)
* Fix: gci command for formatting code
* Chore: format code
* Fix: replace golint with revive
2022-05-01 01:17:49 +08:00
Shelikhoo 8edf332d10 add TCP Keep Alive support in config 2022-04-28 19:50:22 +01:00
世界 7b0699e8a5 Apply timeout to dns outbound (#1330) 2021-10-15 20:56:55 +08:00
Eng Zer Jun deb9d08487 refactor: move from io/ioutil to io and os package (#1298) 2021-09-27 00:56:31 +08:00
秋のかえで b25a9e531c Feat: custom TCP Fast Open queue length (#1293)
* Feat: custom TCP Fast Open queue length

* Feat: change default TFO queue length to 4096
2021-09-27 00:29:44 +08:00
世界 00155ffa2a Add disableFallbackIfMatch dns option 2021-09-17 14:01:41 +01:00
世界 97ef2397c8 Add socks4/4a support 2021-09-17 13:58:22 +01:00
Ye Zhihao 4d155bc2bf 🐛 http dialer add socket config; sockopt.mark use uint32 (#1264) 2021-09-10 16:18:26 +08:00
Shelikhoo a53fd35205 separate client ca and server ca
This is designed to prevent a server from being attacked with a client with a certificate issued by a trusted system CA.
Some commercial CA actually can issue certificate to individual to proof their identity. The server should not accept these certs as a valid client certificates.
2021-09-01 22:34:13 +01:00
ydx fb665ee94a add client certificate verify (#1169) 2021-09-01 21:12:03 +01:00
Loyalsoldier 5794a97708 Fix: JSON tag case (#1212)
JSON unmarshal is case insensitive in Golang
2021-08-19 21:16:54 +08:00
ihotteandihotte 8f429c35cb Fix: observatory log & JSON config(#1211)
Co-authored-by: ihotte <ihotte@yeah.net>
2021-08-19 13:40:47 +08:00
Loyalsoldier 639148dda4 Refinement: LRU (#1142) 2021-08-10 11:08:45 +08:00
Shelikhoo 91a2286064 apply coding style 2021-07-01 19:02:27 +01:00
Shelikhoo 54fc21e537 add custom probe interval for observer 2021-06-30 19:33:37 +01:00
Shelikhoo 4773e3a1ed add custom probe URL support for observatory 2021-06-30 17:47:29 +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 b57ebd5c1c vFormat: use gci instead of customized goimports (#1020) 2021-05-19 19:59:46 +08:00
ght99andloyalsoldier faee88163c Fix: v2ctl failed to get geodata loaders (#1014)
Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2021-05-17 00:44:08 +08:00
Loyalsoldier 218f27c9c1 Feat: vformat supports multi-core processing (#996) 2021-05-11 09:05:43 +08:00
Loyalsoldier a771e3401a Fix: lint error (#995) 2021-05-11 08:36:06 +08:00
Shelikhoo 31a7fb503c update TCPKeepAliveInterval type to allow expression disable 2021-05-06 15:33:35 +01:00
Shelikhoo 77a573caf1 refactor test for loader benchmark 2021-05-05 13:50:56 +01:00
loyalsoldier fa85afc920 Feat: add geodata loader benchmark 2021-05-05 13:22:01 +01:00
Loyalsoldier 1cb9fd2999 Chore: little refinements (#973) 2021-05-05 07:28:09 +08:00
Shelikhoo d6abddc7f5 rename the field to keep lint happy 2021-05-04 22:55:39 +01:00
Shelikhoo 44514ebc1a Merge branch 'dev-wsearlydatadiverse' 2021-05-04 22:50:06 +01:00
Shelikhoo 8d4b4201f8 add json parse rule for tcp keep alive interval 2021-05-04 22:37:38 +01:00
rurirei 2129c6e1e9 feat: update bootstrap_dns_android (#966)
* update with non_specified network

* remove wrongs

* add alternative bootstrapDialer

* do test

* Update dns_bootstrap_android_test.go

* example of alternative dialer

* public method

* move const

* Update dns_bootstrap_android_test.go

* no duplicated

* Rename infra/conf/dns_bootstrap_android.go to transport/internet/system_dns_android.go

* Update system_dns_android.go

* Update and rename infra/conf/dns_bootstrap_android_test.go to transport/internet/system_dns_android_test.go

* no imports

* Update system_dns_android.go

* Update system_dns_android_test.go

* create systemDNS

* Create system_dns_android.go

* Update system_dialer.go

* call Resolver on systemDialer

* create system_dns_test.go

* resolver.LookupIP params

* param fix

* noneed TestSystemDNSResolver

* revert: no specified resolver

* Delete system_dns.go

* android only

* android only test

* typo
2021-05-04 22:22:01 +01:00
Shelikhoo 1d7e497599 Added json configure file parsing of h2 transport 2021-05-04 20:32:27 +01:00
loyalsoldier 007a15bd79 fix 2021-05-04 19:21:46 +01:00
loyalsoldier 2bdc86049a code style 2021-05-04 19:21:34 +01:00
loyalsoldier 40f8e82204 refine 2021-05-04 19:19:43 +01:00
Shelikhoo 3ba9a5b4f5 Refine geodata related tests (#967)
(cherry picked from commit 7805ca2ac1)
2021-05-04 19:13:52 +01:00
Shelikhoo bf0e7e35c8 move geo loader conf to environment variable 2021-05-04 19:08:18 +01:00
Shelikhoo 19d1ff9003 apply coding style 2021-05-04 19:08:15 +01:00
Shelikhoo 4610c5e23f memconservative geofile loader 2021-05-04 19:08:06 +01:00
Shelikhoo 0f1fac84ca refactor configure file loader for geo loader and v5 2021-05-04 19:07:58 +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 ace2c44c2b Revert "Refine geodata related tests (#967)"
This reverts commit 7805ca2a
2021-05-04 19:07:35 +01:00
Loyalsoldier 7805ca2ac1 Refine geodata related tests (#967) 2021-05-04 16:30:23 +08:00
Shelikhoo 40a7847d7f update json configure for websocket header 2021-05-01 15:49:42 +01:00
Loyalsoldier 980fb59878 Fix: observatory starts with empty config & fails to close (#957) 2021-05-01 22:28:23 +08:00
秋のかえでandloyalsoldier b68411f460 Fix: browserforwarder panics with empty config (#954)
Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2021-05-01 20:50:30 +08:00
Loyalsoldier 625a15e03b Chore: format code by new customized goimports (#950) 2021-05-01 11:15:39 +08:00
Loyalsoldier 0fe129de65 Infra: use customized goimports (#949) 2021-05-01 11:11:37 +08:00
Loyalsoldier 7e876709fe Refactor: memory-efficient geo file decoder (#934) 2021-05-01 07:59:29 +08:00
Shelikhoo 95432b2131 fix:browser forwarder not supported by multi-json 2021-04-30 20:53:08 +01:00
Shelikhoo 347b0c3e85 fix:observatory not supported by multi-json 2021-04-30 15:25:24 +01:00