1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-16 09:26:21 -05:00
Commit Graph

1248 Commits

Author SHA1 Message Date
秋のかえで
84c31ba87f
Chore: bump github.com/lucas-clemente/quic-go from 0.26.0 to 0.27.0 (#1716) 2022-04-06 12:59:25 +08:00
dyhkwong
5ce71e0652
Feat: make gRPC dialer accept socket config (#1697) 2022-04-06 12:26:04 +08:00
Shelikhoo
4357719480 apply sockopt rename 2022-01-23 20:33:01 +00:00
Shelikhoo
190a8e7ed7 rename sockopt options: auto generated 2022-01-23 20:33:01 +00:00
Shelikhoo
1fc7c5731a rename sockopt options 2022-01-23 20:33:01 +00:00
Shelikhoo
547b4fb49b rewrite sockopt rxtx buf size message for darwin, freebsd 2022-01-23 20:33:01 +00:00
Shelikhoo
16a44f65be add socksopt rxtxbuf for freebsd 2022-01-23 20:33:01 +00:00
Shelikhoo
1a004529d9 apply coding style for keep alive sockopt in freebsd 2022-01-23 20:33:01 +00:00
Shelikhoo
1a35c1dc69 add socksopt rxtxbuf for freebsd 2022-01-23 20:33:01 +00:00
Shelikhoo
7dc8559f1c add socksopt rxtxbuf for windows 2022-01-23 20:33:01 +00:00
Shelikhoo
eb0b52fdfa add socksopt bindToDevice, rxtxbuf for linux 2022-01-23 20:33:01 +00:00
Shelikhoo
ccab22b863 add force buffer size sockopt option: auto generated 2022-01-23 20:33:01 +00:00
Shelikhoo
e088086abf add force buffer size sockopt option 2022-01-23 20:33:01 +00:00
Shelikhoo
1019ae36c2 refactor linux socket opts 2022-01-23 20:33:01 +00:00
Shelikhoo
434d8a49a0 add bind to device, socket buf size setting to socket options: auto generated 2022-01-23 20:33:01 +00:00
Shelikhoo
84f2d47c74 add bind to device, socket buf size setting to socket options 2022-01-23 20:33:01 +00:00
世界
093a4d6a82
fix error formatting in sockopt 2022-01-16 20:39:29 +00:00
Shelikhoo
84c428c226 adapt style recommendations for keep alive control
From: https://github.com/v2fly/v2ray-core/pull/1484#discussion_r777456773 https://github.com/v2fly/v2ray-core/pull/1484#discussion_r777270291
2022-01-16 13:31:44 +00:00
ValdikSS
a0eb84dbff Separate TcpKeepAliveIdle and TcpKeepAliveInterval check logic 2022-01-16 13:31:44 +00:00
Shelikhoo
1e98e0ae92 fix error introduced by rebase 2022-01-03 15:55:18 +00:00
Shelikhoo
0f2da63f0c fix lint warnings in packetaddr 2022-01-03 15:55:18 +00:00
Shelikhoo
d068b60791 shadowsockets fullcone outbound support 2022-01-03 15:55:18 +00:00
Shelikhoo
690b4924ae add packetaddr support for socks 2022-01-03 15:55:18 +00:00
Shelikhoo
ec9b64e5ec Add packet addr dispatcher 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
ac65036808 refactor UDP dispatcher to support fullcone dispatcher 2022-01-03 15:55:18 +00:00
Shelikhoo
3ef7feaeaf
update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
秋のかえで
423d566024
fix typo 2021-12-23 13:14:43 +08:00
Bo He
79f751662c
fix typo (#1475) 2021-12-22 22:51:11 +08:00
世界
fa61371102
Fix log usage 2021-12-12 18:10:21 +08: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
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
ValdikSS
1a3d6eeca8 Add TCP keep alive support in Windows 2021-11-28 22:49:02 +00:00
ValdikSS
dc709f56dd Add TCP keep alive support in MacOS, FreeBSD 2021-11-28 22:49:02 +00:00
ValdikSS
499a0e19cb Add TCP keep alive support in Linux 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
ValdikSS
7563338cc8 Add TCP keep alive idle setting 2021-11-28 22:49:02 +00:00
Loyalsoldier
dce8764fd7
Lint: fix lint (#1427)
* Lint: replace golint with revive
* Lint: fix lint
2021-11-27 17:16:41 +08:00
秋のかえで
7413246fb8
Feat: implement set buffer methods in QUIC sysConn (#1404) 2021-11-22 14:13:25 +08:00
朱聖黎 (Zhu Sheng Li)
77b88171d6
fix: readRequest API changed since go1.17 (#1370)
fixed: #1265
2021-11-06 22:09:26 +08:00
世界
a66bb28aee
Reformat code 2021-10-28 18:34:19 +08: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
秋のかえで
be4dd56ac7
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 22:49:08 +01:00
Ye Zhihao
1919d47649
cherry-pick adjustment for uint socket mask 2021-09-27 21:39:29 +01:00
Ye Zhihao
27614e56fc
🐛 http dialer add socket config; sockopt.mark use uint32 (#1264)
(cherry picked from commit 4d155bc2bf)
2021-09-27 21:37:45 +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
秋のかえで
a67132e3d2
feat: add gRPC transport simplified config 2021-09-07 13:51:30 +01:00
Shelikhoo
1cb3ee5f6d
update generated protobuf file 2021-09-06 14:04:53 +01:00
Shelikhoo
ef738cce7a
add declarative config for converter 2021-09-05 16:37:27 +01:00
世界
c766b08c82 Fix missing options for grpc 2021-09-05 16:31:43 +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
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
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
d1a4b0388a
add app environment definitions 2021-09-04 11:13:31 +01:00
Shelikhoo
a4e6fe5a94
reference google version of protobuf library 2021-09-04 11:13:31 +01:00
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