Commit Graph
264 Commits
Author SHA1 Message Date
风扇滑翔翼andGitHub 1f2d76c066 QUIC sniffer: Fix potential slice panic (#3406)
* QUIC sniffer: Fix potential slice panic

* Fix type err

* Update sniff.go

* Add test and fix more

* Refine
2025-05-17 20:53:29 +01:00
Xiaokang Wang (Shelikhoo)andGitHub c8c1120747 QUIC sniffer restructure (#3360) 2025-03-23 18:16:29 +00:00
Xiaokang Wang (Shelikhoo)andGitHub 561f31245d A temporary testing fix for the buffer corruption issue (#3331) 2025-02-27 14:32:04 +00:00
VigilansandGitHub 3d54bec86a Fix unreleased cache buffer in QUIC sniffing (#3320) 2025-02-20 20:57:11 +00:00
8ceba34970 Correctly implement QUIC sniffer when handling multiple initial packets (#3310)
* Correctly implement QUIC sniffer when handling multiple initial packets

* Only parse token for initial packet

Signed-off-by: Vigilans <vigilans@foxmail.com>

* Update test case for QUIC sniffer

* Fix testcases
* Third packet in `Handshake[2]; packet 1-3` mistakenly copied UDP header into payload, making the payload length 1278 instead of 1250

* Introduce `protocol.ErrProtoNeedMoreData` to allow sniffer to fetch more packets until complete

---------

Signed-off-by: Vigilans <vigilans@foxmail.com>
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
Co-authored-by: dyhkwong <50692134+dyhkwong@users.noreply.github.com>
2025-02-16 14:11:27 +00:00
Shelikhoo 3ee9045697 chore: regenerate protos 2025-02-02 13:57:34 +00:00
dyhkwongandGitHub 5ffbc0296c Fix tls.WithDestination ignoring IP address (#3177) 2024-10-12 19:25:21 +01:00
Shelikhoo a40f0c4d11 Add Keep-Alive to removed headers in RemoveHopByHopHeaders 2024-04-28 09:18:08 +01:00
dyhkwongandGitHub 8de2f27043 fix protocol matching in routing (#2540)
* remove invalid http2 sniffer

* do not set metadata protocol for http inbound

http inbound may have transport settings

* fix doh metadata protocol
2023-09-14 08:27:36 +08:00
AkinoKaede 8c5bcacb99 feat: bulit-in qtls cipher suite implementation 2023-07-17 12:38:25 +08:00
dyhkwongandShelikhoo 8433420654 make use of buf.NewWithSize() in Trojan's PacketReader and PacketWriter
also fix a domain length check bug
2023-05-24 00:18:19 +01:00
AkinoKaede 746c45036e Chore: remove Go 1.18 support 2023-04-06 20:10:14 +08:00
VigilansandShelikhoo 8b3215c72a Correctly implement quic sniffer's frame parsing 2023-02-19 12:28:41 +00:00
MoetaYukoandShelikhoo 0dcf8cad0d Compatibility change for go 1.18 2023-02-18 14:36:47 +00:00
秋のかえでandGitHub 07ed4e0d29 Chore: use Go 1.20 (#2297) 2023-02-03 17:08:53 +08:00
Shelikhoo 137cd7093c chore: regenerate protobuf file 2022-09-06 20:36:27 +01:00
HellojackandGitHub a8b0991b52 Feat: refine the logic of security type AUTO (#1913)
* Feat: refine the logic of security type AUTO

https://cs.opensource.google/go/go/+/master:src/crypto/tls/cipher_suites.go;drc=9e6cd3985dbcdcfe0ed2075be6dbe8c5d6de59cb;l=364

* fix fmt
2022-08-19 20:56:32 +01:00
秋のかえで 9ae51c1f15 Chore: use Go v1.19 2022-08-19 19:37:09 +08:00
秋のかえで e0df70b16d Feat: use different qtls modules for different Go version 2022-04-05 14:47:21 +08: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
LoyalsoldierandGitHub 43447aa2e4 Chore: format code to fix lint (#1426) 2021-11-27 14:32:07 +08:00
Shelikhoo 65174fa487 rename buf type adaptor into FromBytes 2021-11-13 14:24:43 +00:00
世界andShelikhoo d781cc0cfd Add uTP sniffer 2021-11-13 14:22:36 +00:00
世界andShelikhoo dbc26775c9 Add quic sniffer 2021-11-13 14:21:57 +00:00
ayanamistandGitHub 80d92381af Add PATCH TRACE http method to sniffer (#1314) 2021-11-05 13:22:30 +08: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 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
database64128andGitHub 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 0822160008 VMess AEAD based packet length 2021-06-22 12:26:01 +01:00
LoyalsoldierandGitHub 6f8979d017 Style: format code by gofumpt (#1022) 2021-05-20 05:28:52 +08:00
LoyalsoldierandGitHub 9e9173acb4 Chore: update protobuf & dependencies (#793)
* Chore: update protobuf
* Chore: regenerate mock files
* Chore: update dependencies
* Chore: use Go v1.16.2 and later
2021-03-18 12:17:26 +08:00
LoyalsoldierandGitHub e03947e6b0 Chore: update protobuf & dependencies (#748) 2021-03-08 05:12:27 +08:00
Shelikhoo 7dabfb755e merge vmess zero encryption support 2021-03-04 00:12:37 +00:00
LoyalsoldierandGitHub 49cf614346 Chore: update dependencies & protobuf (#728) 2021-03-03 17:31:53 +08:00
Shelikhoo 770a2bc1a3 Regenerate protobuf for Zero Security imaginary security level 2021-03-01 15:32:19 +00:00
Shelikhoo 833997df5a Zero Security imaginary security level 2021-03-01 15:30:36 +00:00
LoyalsoldierandGitHub f94dd11a8c Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
LoyalsoldierandGitHub f98944c9e0 Chore: update protobuf (#670) 2021-02-11 14:57:20 +08:00
LoyalsoldierandGitHub 8cb2db5321 Fix: security issues & overflow potentiality (#465) 2020-11-28 21:56:20 +08:00
loyalsoldier 784775f689 Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
LoyalsoldierandGitHub bb44d01096 Format proto files using clang-format according to google style (#264)
* Format proto files using clang-format according to google style
* Regenerate pb.go files
2020-10-05 08:36:40 +08:00
loyalsoldier b181045b0c Errorgen: support to run outside of GOPATH 2020-10-04 13:06:12 +08:00
loyalsoldier f9175e3bc8 Fix according to go vet results 2020-08-26 19:35:33 +08:00
LoyalsoldierandGitHub ef460f68f8 Adjust Protocol Buffers (#109)
* Update protoc binary executable files to v3.13.0

* Write proto files in more standard way

* Make go generate & vprotogen compatible with protoc-gen-gofast

* Regenerate pb.go files according to new proto files

* Clean go.sum by running go mod tidy

* Implement mustEmbedUnimplementedServiceServer for gPRC services
2020-08-24 12:10:26 +00:00
Roger ShimizuandShelikhoo 90af5f19ba Apply Debian's patch to upstream 2020-06-24 12:57:03 +08:00
Shelikhoo 09b81b78c3 regenerate pb data 2020-06-08 16:16:32 +08:00