1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-07-05 16:38:17 -04:00

6746 Commits

Author SHA1 Message Date
Shelikhoo
09ecf18648
update version to v5.37.0 v5.37.0 2025-07-05 15:27:50 +01:00
Shelikhoo
e17ac47dc8
disable tlsmirror transport from subscription 2025-07-04 18:13:31 +01:00
Shelikhoo
800e6f03c9 fix lint issues in tls mirror 2025-07-04 17:26:05 +01:00
Shelikhoo
19025d330e rename option to DeferInstanceDerivedWriteTime in tlsmirror 2025-07-04 17:26:05 +01:00
Shelikhoo
089981bf49 move single connection HTTP transport implementation 2025-07-04 17:26:05 +01:00
Shelikhoo
81bbf5200d move single connection HTTP transport implementation 2025-07-04 17:26:05 +01:00
Shelikhoo
c36ab4045c fix transport layer padding issue with tlsmirror 2025-07-04 17:26:05 +01:00
Shelikhoo
d9dd3c83f9 rewrite first write delay calculation to handle edge case 2025-07-04 17:26:05 +01:00
Shelikhoo
29f16325d2 add server side first write delay 2025-07-04 17:26:05 +01:00
Shelikhoo
5d08dc5a13 add todo for clientside close 2025-07-04 17:26:05 +01:00
Shelikhoo
284d1891c6 add transport layer padding support to tlsmirror 2025-07-04 17:26:05 +01:00
Shelikhoo
f59383bb82 add first write delay to compensate for timing issue created by forwarding traffic to remote server 2025-07-04 17:26:05 +01:00
Shelikhoo
ba9938e93f add default no wait for wait time spec 2025-07-04 17:26:05 +01:00
Shelikhoo
a1f8ede522 rework wait time in traffic generator 2025-07-04 17:26:05 +01:00
Shelikhoo
1815c1e6c9 when there is an error, disable message inserting and drain copy sockets 2025-07-04 17:26:05 +01:00
Shelikhoo
548331dc2b avoid message copy deadlock in message writers and stop copy when alert was sent 2025-07-04 17:26:05 +01:00
Shelikhoo
71f1be1b9c support connection invalidation in tlsmirror 2025-07-04 17:26:05 +01:00
Shelikhoo
22734d9ad9 update nonce counter for tls12 encrypted alert as well. 2025-07-04 17:26:05 +01:00
Shelikhoo
c5199a2f6f fix corrupted tls12 aead stream in tls mirror 2025-07-04 17:26:05 +01:00
Shelikhoo
3a513fb0c3 fix not using tag in tlsmirror encryption key derivation 2025-07-04 17:26:05 +01:00
Shelikhoo
8772199e24 Add TLS1.2 AEAD explicit nonce processing 2025-07-04 17:26:05 +01:00
Shelikhoo
56dd21428f Add TLS1.2 AEAD explicit nonce detection 2025-07-04 17:26:05 +01:00
Shelikhoo
b1701bc934
update version to v5.36.0 v5.36.0 2025-07-03 18:14:54 +01:00
Shelikhoo
58f836c139
fix adding timeout=30m to go test 2025-07-03 17:58:49 +01:00
Shelikhoo
ac68bb34da
update generated protocol buffer files 2025-07-03 17:52:42 +01:00
Shelikhoo
2efd36474e
increase test timeout to 30m 2025-07-03 17:46:24 +01:00
rp-hello
ccedd48ca0
proxy dns with NOTIMP error (#2954)
* proxy dns with NOTIMP error

* fix compile error when protoc is relative link

```
$ go generate
...
proto.go
fork/exec ../Cellar/protobuf/28.3/bin/protoc: no such file or directory
exit status 1
proto.go:5: running "go": exit status 1
context_test.go
functions_test.go
v2ray_test.go
$ ls -l `which protoc`
lrwxr-xr-x 1 local admin 34 Nov  1 13:56 /opt/homebrew/bin/protoc -> ../Cellar/protobuf/28.3/bin/protoc
```

* add nonIPQuery for dns config

* go generate with only dns.proto

* Try Allowing Github actions

* fix merge error

* apply coding style

---------

Co-authored-by: local <local@localhost>
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
2025-07-03 17:37:14 +01:00
Shelikhoo
d69f57486a
stop closing planned tickets and prs 2025-07-03 11:52:45 +01:00
dependabot[bot]
92c33d4162
Chore: bump github.com/go-playground/validator/v10 (#3438)
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.26.0 to 10.27.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.26.0...v10.27.0)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  dependency-version: 10.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-03 11:49:57 +01:00
Xiaokang Wang (Shelikhoo)
b1ef737d48
Add TLSMirror looks like TLS censorship resistant transport protocol as a developer preview transport (#3437)
* Add tlsmirror server processing routine

* Add tlsmirror server processing routine: generated

* Add tlsmirror server handshake capture

* it runs version~

* add draining copy for handshake

* refactor out base tls mirror connection

* tls mirror server side base

* add random field extraction

* add tls like encryption

* add tls like encryption (generated)

* add server side implementation for tlsmirror

* apply coding style: tlsmirror

* fix typo in mirrortls mirror crypto

* add client initial implementation for tls mirror

* add traffic generator implementation for tlsmirror

* add client processing of traffic generator originated traffic

* add embedded traffic generator support to mirrortls client

* override security setting of traffic generator if appropriate

* override security setting of traffic generator if appropriate

* apply request wait time for traffic generator

* add unsafe keyword required for linkname

* fix outbound manager registration for traffic ingress at tlsmirror client

* initial works at sticking packets together

* fix traffic generator's traffic goto logic

* fix get client and server random

* fix applying primary key

* fix log error handling for handshake random retrieval

* fix nonce generation and key derivation logic

* fix: add readPipe channel to client and server connection handlers

* fix: use detached context for persistent mirror TLS dialer

* fix: ensure proper closure of connections on context cancellation

* fix: proper detection of traffic generator originated connection

wait for connection ready before sending payload

* fix coding style
2025-07-03 11:33:16 +01:00
Shelikhoo
248cba4e43
update version to v4.35.0 v5.35.0 2025-06-30 05:28:12 +01:00
Xiaokang Wang (Shelikhoo)
eff7df91d0
Update quic version to v0.53.0 (#3435) 2025-06-30 05:13:51 +01:00
风扇滑翔翼
dc1bbbb427
HTTP inbound: Directly forward plain HTTP 1xx response header (#3434) 2025-06-30 04:23:51 +01:00
basinilya
6c93961392
fix false success from SOCKS server when Dispatch() fails (#3431)
Postpone SOCKS server ok reply to a TCP Connect command until Dispatch()
actually creates an upstream Link. Previously it was sent immediately
inside Handshake(). UDP works as before.
2025-06-30 04:23:40 +01:00
Shelikhoo
6eb00bec29
update version to v5.34.0 v5.34.0 2025-06-22 23:59:50 +01:00
dependabot[bot]
7ecebc80d9
Chore: bump github.com/go-chi/chi/v5 from 5.2.1 to 5.2.2 (#3430)
Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/go-chi/chi/releases)
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-chi/chi/compare/v5.2.1...v5.2.2)

---
updated-dependencies:
- dependency-name: github.com/go-chi/chi/v5
  dependency-version: 5.2.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-22 23:56:40 +01:00
dependabot[bot]
138af4b69f
Chore: bump golang.org/x/net from 0.40.0 to 0.41.0 (#3426)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.40.0 to 0.41.0.
- [Commits](https://github.com/golang/net/compare/v0.40.0...v0.41.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.41.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-22 23:32:13 +01:00
dependabot[bot]
aef7f62957
Chore: bump github.com/cloudflare/circl from 1.5.0 to 1.6.1 (#3428)
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.5.0 to 1.6.1.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.5.0...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-version: 1.6.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-22 23:10:14 +01:00
dependabot[bot]
b14ff7b1fe
Chore: bump golang.org/x/crypto from 0.38.0 to 0.39.0 (#3424)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.38.0 to 0.39.0.
- [Commits](https://github.com/golang/crypto/compare/v0.38.0...v0.39.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-22 22:52:43 +01:00
dependabot[bot]
8ead4b6e2f
Chore: bump google.golang.org/grpc from 1.72.1 to 1.73.0 (#3425)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.72.1 to 1.73.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.72.1...v1.73.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.73.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-22 22:32:46 +01:00
rhjdvsgsgks
704c0d2145
Add echQueryDomain option (#3421)
Co-authored-by: myself <mail@mail.mail>
2025-06-22 22:20:15 +01:00
Shelikhoo
9844b507e5
Update version to v5.33.0 v5.33.0 2025-05-26 23:20:59 +01:00
dependabot[bot]
b39d891ebb
Chore: bump github.com/quic-go/quic-go from 0.51.0 to 0.52.0 (#3413)
Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.51.0 to 0.52.0.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Commits](https://github.com/quic-go/quic-go/compare/v0.51.0...v0.52.0)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-version: 0.52.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-26 23:19:17 +01:00
yiitz
7c5e4c7a4b
Fix mkcp unreleased buffer (#3411)
* Fix buffer leak in mkcp transport protocol

* fix Write panic caused by concurrent state check
2025-05-26 23:15:48 +01:00
Shelikhoo
a4f28a2f6f
update version to 5.32.0 v5.32.0 2025-05-17 22:05:22 +01:00
Shelikhoo
f0d87d13d6
Update linter version 2025-05-17 21:57:59 +01:00
Shelikhoo
d565c48690
Revert "Fix buffer leak in mkcp transport protocol (#3347)"
This reverts commit d2b2f8c1f3d67134d78e79f1b82d7fd7a45cc0af.
2025-05-17 21:50:18 +01:00
dependabot[bot]
ce14b96d9a
Chore: bump golang.org/x/net from 0.39.0 to 0.40.0 (#3400)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.39.0 to 0.40.0.
- [Commits](https://github.com/golang/net/compare/v0.39.0...v0.40.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-17 21:45:17 +01:00
dependabot[bot]
0b6cfbbe1e
Chore: bump github.com/pires/go-proxyproto from 0.8.0 to 0.8.1 (#3397)
Bumps [github.com/pires/go-proxyproto](https://github.com/pires/go-proxyproto) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/pires/go-proxyproto/releases)
- [Commits](https://github.com/pires/go-proxyproto/compare/v0.8.0...v0.8.1)

---
updated-dependencies:
- dependency-name: github.com/pires/go-proxyproto
  dependency-version: 0.8.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-17 21:21:01 +01:00
dependabot[bot]
05f09b7388
Chore: bump golang.org/x/crypto from 0.37.0 to 0.38.0 (#3401)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/crypto/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-17 21:07:13 +01:00