1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-23 12:02:58 -05:00
Commit Graph

1128 Commits

Author SHA1 Message Date
Shelikhoo
ba2dd5995d replace TypedMessage with anypb.Any 2021-09-04 11:13:28 +01:00
Jebbs
b05a469488 v5: Remove v2ctl & wv2ray (rebased from 7c1ab06206) 2021-09-04 11:09:55 +01:00
Shelikhoo
ebdacfdb86 add comment for gRPC TLS silent failure behavior
When gRPC transport have been configured to use TLS, it may silently ignore TLS failure. This may make it harder to diagnose TLS setting issues when gRPC transport is used. This comment is added to help other developers be aware of this caveat.
2021-09-03 21:34:34 +01:00
Shelikhoo
8ac4750f9e fix lint warning
apply coding style. Be sure to update the style checking tool after a long time of inactivity.
2021-09-02 17:34:39 +01: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
database64128
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
Shelikhoo
1409be04c2 regenerate protobuf files 2021-07-01 18:58:48 +01:00
Shelikhoo
e00d80eac4 cancel failed grpc connection 2021-07-01 18:58:13 +01:00
Shelikhoo
0cbb6d75f3 attempt fix of h2 dialer by discarding http client on failure
https://github.com/v2fly/v2ray-core/issues/1056#issuecomment-868321840
2021-06-25 10:56:42 +01:00
Loyalsoldier
d7a202a705 Lint: update linter config & fix code style (#1089)
* Lint: update linter config
* Fix: code style
2021-06-22 22:36:23 +08:00
Shelikhoo
d0d09dfa7f apply coding style 2021-06-22 12:46:20 +01:00
Shelikhoo
861d6be19a use detached context to fix #1059 #1059
It is important to use a detached context when creating shared transport connections that will outlive the initializing connection.

Otherwise, once the original initializing connection is cancelled, the transport connection will be cancelled as well.

This issue will be addressed in v5 by providing a transport session storage that also reduce the usage of globalDialerMap and other global variables.
2021-06-22 12:20:27 +01:00
Shelikhoo
e98865a205 amend certificate removal message 2021-06-04 20:07:27 +01:00
Bhoppi Chaw
6d9c463b60 Fix: new cert issuing is incorrectly delayed (#998)
* fix new cert issuing is incorrectly delayed

* apply lint

* revert cert duration & write cert issue/revoke info into log

* apply lint

Co-authored-by: Bhoppi Chaw <bhoppi#outlook,com>
2021-06-04 19:55:30 +01:00
Loyalsoldier
6f8979d017 Style: format code by gofumpt (#1022) 2021-05-20 05:28:52 +08:00
Loyalsoldier
cf009a4ba2 Fix lint (#1021) 2021-05-19 20:41:23 +08:00
Loyalsoldier
b57ebd5c1c vFormat: use gci instead of customized goimports (#1020) 2021-05-19 19:59:46 +08:00
Shelikhoo
fb6e449572 apply coding style 2021-05-09 15:16:42 +01:00
Shelikhoo
7b721e1a6f support chain proxy for h2 2021-05-09 15:14:28 +01:00
Shelikhoo
1038823ee9 support chain proxy for grpc 2021-05-09 15:13:18 +01:00
Shelikhoo
31a7fb503c update TCPKeepAliveInterval type to allow expression disable 2021-05-06 15:33:35 +01:00
Loyalsoldier
1cb9fd2999 Chore: little refinements (#973) 2021-05-05 07:28:09 +08:00
Shelikhoo
44514ebc1a Merge branch 'dev-wsearlydatadiverse' 2021-05-04 22:50:06 +01:00
Shelikhoo
e0f02dcca6 add required import 2021-05-04 22:46:16 +01:00
Shelikhoo
8aff3e09a4 update tcp keep alive interval config 2021-05-04 22:39:28 +01:00
Shelikhoo
c564c84b17 set TCP keep alive only on TCP socket 2021-05-04 22:30:41 +01:00
Shelikhoo
1dfe55fac8 Merge branch 'master' of https://github.com/therealak12/v2ray-core into therealak12-master-pr962 2021-05-04 22:28:26 +01:00
Shelikhoo
00a4551637 add document for temporary API:DNSResolverFunc, DNSResolverFunc 2021-05-04 22:25:37 +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
0fbd8a1fd1 fix coding style 2021-05-04 20:47:19 +01:00
Shelikhoo
452de7c964 apply h2 http header on server side 2021-05-04 20:32:27 +01:00
Shelikhoo
2847bc3271 Add method, header support to http2 transport 2021-05-04 20:30:09 +01:00
Shelikhoo
957d7791c4 Regenerate proto: Add method support to http2 transport 2021-05-04 20:30:09 +01:00
Shelikhoo
6e5b8dcd8f Add method support to http2 transport 2021-05-04 20:30:08 +01:00
Shelikhoo
4701a225f4 Regenerate proto: Add header support to http2 transport 2021-05-04 20:30:08 +01:00
Shelikhoo
4b1d6ec4d1 Add header support to http2 transport 2021-05-04 20:29:54 +01:00
Ahmad Karimi
ab6480ef72 Fix: add keep alive request duration to configs 2021-05-02 23:36:30 +04:30
rurirei
1822504ed8 Fix: nullcheck on alternative systemDialer (#959)
* fix: null-check on alternative systemDialer
* delete deprecated option DualStack
2021-05-02 22:28:33 +08:00
Loyalsoldier
625a15e03b Chore: format code by new customized goimports (#950) 2021-05-01 11:15:39 +08:00
Shelikhoo
d378b8c42e add support for header based early data on server side 2021-05-01 01:32:35 +01:00
Shelikhoo
75231604c7 add support for header based early data on server side 2021-05-01 01:31:41 +01:00
Shelikhoo
54d0c3d400 added client support for header based websocket early data 2021-05-01 01:14:16 +01:00
Shelikhoo
b446001de8 update generated protobuf for websocket 2021-05-01 00:49:25 +01:00
Shelikhoo
dd5048c702 define early data header name in websocket protobuf 2021-05-01 00:48:04 +01:00
Shelikhoo
408b5adc1c apply coding style 2021-05-01 00:41:53 +01:00
Shelikhoo
7a6f887fe3 relocated browser forwarder interface 2021-05-01 00:06:10 +01:00
Shelikhoo
50bdcc24a7 pinned cert test 2021-04-15 20:03:33 +01:00
Shelikhoo
ebb720804d refactored cert pin 2021-04-15 20:02:48 +01:00
Shelikhoo
92b845a45b added calculation of certificate hash as separate command and tlsping, use base64 to represent fingerprint to align with jsonPb 2021-04-15 19:01:55 +01:00