19 Commits

Author SHA1 Message Date
kevin 9ec58b02f9 Fix #104: Display correct protocol name in logs
- Add protocol field to http2Interop struct to track actual protocol
- Use stored protocol name instead of hardcoded 'grpc' in output
- Now http2 mode shows 'http2:' prefix and grpc mode shows 'grpc:' prefix
- Move grpcHeaderLen constant to grpc.go to avoid duplication
2025-12-25 22:21:28 +08:00
Kevin Wan 7a10372447 feat: support displaying plain text (#127) 2025-03-30 20:26:53 +08:00
Brian B. Williams d52f1095bd feat: add mysql protocol, surport client and server parse. (#100)
* fix: bug only processed client, not server.

* fix: remove unused code

* feat: transmission from the server to the client is inefficient when limited to 32KB, especially for handling large response bodies.

* fix: code runner

* chore: optimize result reset output

---------

Co-authored-by: jxli <jiaxin.li@corerain.com>
2024-10-01 14:20:13 +08:00
Kevin Wan 9e4e7d601c chore: refactor mysql protocol (#96)
* chore: refactor mysql protocol

* chore: refactor mysql protocol
2024-08-06 20:49:36 +08:00
Brian B. Williams a9f1d37b69 feat: mysql协议客户端报文解析 (#93)
Co-authored-by: jxli <jiaxin.li@corerain.com>
2024-08-06 18:32:00 +08:00
Xiaoju Jiang 7287623d00 【ADD】添加对mqtt协议的支持 (#66)
* 添加对mqtt协议的支持

* Update mqtt.go

---------

Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-12-21 21:08:26 +08:00
Kevin Wan 7d463bff4a chore: update deps (#33) 2023-04-28 23:17:43 +08:00
Kevin Wan 605a78f5b4 chore: refactor (#22) 2023-02-15 11:23:49 +08:00
JamLee c4e6845d72 fix: redis cli connect error (#23) 2023-02-15 11:23:33 +08:00
Kevin Wan 8446aca5b3 fix: #16 (#21) 2023-02-09 20:47:25 +08:00
Kevin Wan cd9eed6c4a chore: remove unused func (#20) 2023-02-09 20:33:38 +08:00
jamleeli 1510f53b17 feat: add mongo and redis protcol support
support mongo statement and redis command display. for example:
tproxy -l 0.0.0.0  -p 27018 -r 127.0.0.1:27017 -t mongo
tproxy -l 0.0.0.0  -p 6380 -r 127.0.0.1:6379 -t redis
2023-02-05 22:35:03 +08:00
kevin 36c7fd7bcb feat: support http2 and grpc, parse grpc content, partially 2022-07-31 16:33:14 +08:00
kevin f9f2a38a95 feat: support http2 headers frame 2022-07-29 23:34:09 +08:00
kevin fbe0516efc chore: use http2 package instead of http2interop 2022-07-29 23:34:09 +08:00
kevin e669e1e1e4 feat: split http2 packets 2022-07-21 13:02:09 +08:00
kevin 47bd1f2146 feat: display http2 stream id 2022-06-18 00:02:53 +08:00
kevin fa496d7eea feat: add release action 2022-06-15 18:24:32 +08:00
kevin cf495c2409 initial import 2022-06-14 09:24:42 +08:00