1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
Commit Graph

6605 Commits

Author SHA1 Message Date
Xiaokang Wang (Shelikhoo)
5ca0f36743
generate alert instead of panic when encountering incorrect listen on port 0 on IPv4 or v6 address (#3172) 2024-10-01 19:33:50 +01:00
Xiaokang Wang (Shelikhoo)
b921dcad6c
add support for parsing some shadowsocks links (#3169) 2024-10-01 19:33:38 +01:00
风扇滑翔翼
5ff7c712f4
新增ECH客户端支持 (#3162)
* Add ECH support

* Use internet.DialSystem()
Why not

* Many fixes
2024-10-01 19:33:16 +01:00
Xiaokang Wang (Shelikhoo)
d9181ad84a
Add Testing for meek, grpc, httpUpgrade Transport (#3160)
* Add instance management based testing

* Add testing for meek transport

* Add testing for grpc, httpupgrade transport
2024-09-16 11:19:42 +01:00
Shelikhoo
531b3533b5
update version to v5.19.0 2024-09-15 16:09:44 +01:00
dependabot[bot]
8ee0399cbb Chore: bump github.com/quic-go/quic-go from 0.46.0 to 0.47.0
Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.46.0 to 0.47.0.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Changelog](https://github.com/quic-go/quic-go/blob/master/Changelog.md)
- [Commits](https://github.com/quic-go/quic-go/compare/v0.46.0...v0.47.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-15 16:08:07 +01:00
Shelikhoo
df52e20448 Update Go mod toolchain to v1.22 2024-09-15 15:54:06 +01:00
Shelikhoo
4402ebc0e2 Update Go version to v1.23 2024-09-15 15:33:54 +01:00
dependabot[bot]
f6cf0f28f3 Chore: bump google.golang.org/grpc from 1.66.0 to 1.66.2
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.66.0 to 1.66.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.66.0...v1.66.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-15 14:29:54 +01:00
dyhkwong
256a8166cf Add packetEncoding for Hysteria 2 2024-09-15 14:13:26 +01:00
Shelikhoo
8b36010fc2
update version to v5.18.0 2024-09-08 18:43:31 +01:00
dyhkwong
84adf2bdb2
Some fixes about Hysteria 2 (#3147)
* hysteria2: remove unused code

* hysteria2: don't ignore some errors

* hysteria2: properly implement TCP request padding

* hysteria2: fix dialer reuse
2024-09-08 17:39:40 +01:00
Shelikhoo
80f1e2fa17 Add back tls certChainHash command 2024-09-08 08:38:05 +01:00
Shelikhoo
764fb2f7d8 removed unused hy2 config 2024-09-08 08:38:05 +01:00
Shelikhoo
3f419f93ec update generated protocol for grpc transport 2024-09-08 08:38:05 +01:00
Jimmy Huang
2078480c4e Add Add Hysteria2 Protocol 2024-09-08 08:38:05 +01:00
dependabot[bot]
485f5a0ef7 Chore: bump google.golang.org/grpc from 1.65.0 to 1.66.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.65.0 to 1.66.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.65.0...v1.66.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-08 08:02:19 +01:00
dependabot[bot]
90ddd3ba03 Chore: bump golang.org/x/net from 0.28.0 to 0.29.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/net/compare/v0.28.0...v0.29.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-06 16:09:59 +01:00
dependabot[bot]
b4a14ca0b0 Chore: bump github.com/jhump/protoreflect from 1.16.0 to 1.17.0
Bumps [github.com/jhump/protoreflect](https://github.com/jhump/protoreflect) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/jhump/protoreflect/releases)
- [Commits](https://github.com/jhump/protoreflect/compare/v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/jhump/protoreflect
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-06 15:56:22 +01:00
dependabot[bot]
94062d6839 Chore: bump golang.org/x/crypto from 0.26.0 to 0.27.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.26.0 to 0.27.0.
- [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.27.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-06 15:27:42 +01:00
Shelikhoo
c5dcf1be03 Adjust default build set to remove pprof from default distribution 2024-09-06 15:13:32 +01:00
sunshineplan
44a28de6f8 Register pprof as a plugin 2024-09-06 15:13:32 +01:00
sunshineplan
0809cdedfe Use pprof build tag for pprof debugging 2024-09-06 15:13:32 +01:00
sunshineplan
a57dfe2aad Add pprof flag for debugging 2024-09-06 15:13:32 +01:00
Shelikhoo
5961b2fd46 Add AllowInsecureIfPinnedPeerCertificate option to tls security 2024-09-06 14:39:53 +01:00
Misaki Kasumi
3d07f686a5 apply control func to activated sockets 2024-09-05 20:55:24 +01:00
Misaki Kasumi
9bee648078 add more checks 2024-09-05 20:55:24 +01:00
Misaki Kasumi
4efdc8016b fix windows build 2024-09-05 20:55:24 +01:00
Misaki Kasumi
90edd2e9db Feat: add special handling for /dev/fd address
to support socket activation
2024-09-05 20:55:24 +01:00
Shelikhoo
b7d02ad972
update to v5.17.1 2024-08-24 18:33:46 +01:00
Shelikhoo
3e7dc35562 fix: use sync.Map in request to packet conn server 2024-08-24 18:32:38 +01:00
Shelikhoo
ae4b7733ee
update to v5.17.0 2024-08-23 23:27:07 +01:00
dependabot[bot]
63ad86f9e3 Chore: bump github.com/go-chi/chi/v5 from 5.0.12 to 5.1.0
Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.0.12 to 5.1.0.
- [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.0.12...v5.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-23 05:10:00 +01:00
dependabot[bot]
4279585559 Chore: bump github.com/adrg/xdg from 0.4.0 to 0.5.0
Bumps [github.com/adrg/xdg](https://github.com/adrg/xdg) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/adrg/xdg/releases)
- [Commits](https://github.com/adrg/xdg/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/adrg/xdg
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-23 04:48:10 +01:00
dependabot[bot]
b9ee1afdfa Chore: bump github.com/pion/transport/v2 from 2.2.5 to 2.2.10
Bumps [github.com/pion/transport/v2](https://github.com/pion/transport) from 2.2.5 to 2.2.10.
- [Release notes](https://github.com/pion/transport/releases)
- [Changelog](https://github.com/pion/transport/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/transport/compare/v2.2.5...v2.2.10)

---
updated-dependencies:
- dependency-name: github.com/pion/transport/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-23 04:11:19 +01:00
dependabot[bot]
404944a52d Chore: bump github.com/pion/dtls/v2 from 2.2.7 to 2.2.12
Bumps [github.com/pion/dtls/v2](https://github.com/pion/dtls) from 2.2.7 to 2.2.12.
- [Release notes](https://github.com/pion/dtls/releases)
- [Changelog](https://github.com/pion/dtls/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/dtls/compare/v2.2.7...v2.2.12)

---
updated-dependencies:
- dependency-name: github.com/pion/dtls/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-23 02:56:58 +01:00
dependabot[bot]
5c1b306cf9 Chore: bump github.com/go-playground/validator/v10
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.20.0 to 10.22.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.20.0...v10.22.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 19:41:09 +01:00
dependabot[bot]
6f883725af Chore: bump github.com/gorilla/websocket from 1.5.1 to 1.5.3
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/gorilla/websocket/releases)
- [Commits](https://github.com/gorilla/websocket/compare/v1.5.1...v1.5.3)

---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 19:29:06 +01:00
dependabot[bot]
2bb45d5ea8 Chore: bump google.golang.org/protobuf from 1.34.0 to 1.34.2
Bumps google.golang.org/protobuf from 1.34.0 to 1.34.2.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 19:04:45 +01:00
dependabot[bot]
efc17f9c3a Chore: bump google.golang.org/grpc from 1.63.2 to 1.65.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.63.2 to 1.65.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.63.2...v1.65.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 16:53:26 +01:00
dependabot[bot]
1faa0e0697 Chore: bump golang.org/x/net from 0.24.0 to 0.28.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.24.0 to 0.28.0.
- [Commits](https://github.com/golang/net/compare/v0.24.0...v0.28.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 12:56:49 +01:00
dependabot[bot]
ec63060030 Chore: bump golang.org/x/sys from 0.19.0 to 0.24.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.19.0 to 0.24.0.
- [Commits](https://github.com/golang/sys/compare/v0.19.0...v0.24.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 12:45:28 +01:00
Shelikhoo
bd25f13997
fix packetconn assembler does not close incoming packet processor 2024-08-22 12:11:01 +01:00
dependabot[bot]
1d8dc0981c Chore: bump github.com/refraction-networking/utls from 1.6.5 to 1.6.7
Bumps [github.com/refraction-networking/utls](https://github.com/refraction-networking/utls) from 1.6.5 to 1.6.7.
- [Release notes](https://github.com/refraction-networking/utls/releases)
- [Commits](https://github.com/refraction-networking/utls/compare/v1.6.5...v1.6.7)

---
updated-dependencies:
- dependency-name: github.com/refraction-networking/utls
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 11:39:56 +01:00
dependabot[bot]
ac23578a5e Chore: bump github.com/quic-go/quic-go from 0.43.0 to 0.46.0
Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.43.0 to 0.46.0.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Changelog](https://github.com/quic-go/quic-go/blob/master/Changelog.md)
- [Commits](https://github.com/quic-go/quic-go/compare/v0.43.0...v0.46.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 05:57:56 +01:00
dependabot[bot]
499dcc7d17 Chore: bump github.com/miekg/dns from 1.1.59 to 1.1.62
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.59 to 1.1.62.
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release)
- [Commits](https://github.com/miekg/dns/compare/v1.1.59...v1.1.62)

---
updated-dependencies:
- dependency-name: github.com/miekg/dns
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 05:31:05 +01:00
Xiaokang Wang (Shelikhoo)
7db39fb566
Add (Experimental) Meyka Building Blocks to request Transport (#3120)
* add packetconn assembler

* let kcp use environment dependency injection

* Add destination override to simplified setting

* add dtls dialer

* add dtls listener

* add dtls to default

* fix bugs

* add debug options to freedom outbound

* fix kcp test failure for transport environment
2024-08-22 04:05:05 +01:00
unknowndevQwQ
b1079aae71 style: remove random trailing spaces
更改配置文件时在 config.json 发现一个,顺便看到 debina 更改日志里也有一个。
2024-08-21 20:45:56 +01:00
Kaede Akino
11ef2b5d28 feat: check the network is TCP before set MPTCP
This actually won't have any impact
2024-08-19 21:40:11 +01:00
Kaede Akino
35b4ad44c0 feat: add MPTCP support 2024-08-19 21:40:11 +01:00