90 Commits
Author SHA1 Message Date
wwqgtxx 94a89fb70f chore: reject oversized sniff reads before filling the buffer 2026-07-28 22:53:06 +08:00
wwqgtxx 669db1ba22 chore: harden QUIC Initial packet processing 2026-07-28 22:45:59 +08:00
wwqgtxx 63f15f2d46 fix: keep connections open after initial sniffing failures 2026-07-28 22:11:26 +08:00
wwqgtxx ea9c544e04 fix: avoid unnecessary waits in TLS and QUIC sniffing 2026-07-28 22:03:52 +08:00
wwqgtxx 8d1b66166d fix: avoid unnecessary waits in HTTP/2 sniffing 2026-07-28 22:03:52 +08:00
wwqgtxx f83a072187 fix: let QUIC sniffer handle Retry key changes 2026-07-28 20:25:22 +08:00
wwqgtxx f298cd2e96 fix: normalize HTTP hosts and avoid unnecessary sniffing delays 2026-07-28 20:12:20 +08:00
wwqgtxx c1603f4d90 fix: coordinate TCP sniffers on overlapping ports 2026-07-28 19:18:00 +08:00
wwqgtxx efd63d8746 chore: extract bitmap handling from QUIC crypto reassembly 2026-07-28 18:26:08 +08:00
wwqgtxx 4fcf9aedea fix: track QUIC crypto stream coverage without repeated range sorting 2026-07-28 17:24:59 +08:00
wwqgtxx c807c9a040 chore: let the HTTP/2 sniffer assemble header blocks across continuation frames 2026-07-28 17:24:52 +08:00
wwqgtxx 4859d14254 chore: let quic sniffer handle coalesced packets and larger client hello 2026-07-28 16:40:58 +08:00
wwqgtxx c235dc18cd chore: let the sniffer assemble client hello across TLS records 2026-07-28 16:00:56 +08:00
wwqgtxx 2bade2940a chore: allow the sniffer to read more data if possible 2026-07-28 15:10:05 +08:00
wwqgtxx cb8e9900f6 chore: let sniffer support multi-round reading 2026-07-28 10:32:18 +08:00
Kosta e889b68955 feat: support H2C and QUICv2 sniffing (#3036) 2026-07-28 08:44:16 +08:00
Guanni Qu 11848509fb fix: quic sniffer out-of-bounds read causes process crash via single UDP packet 2026-06-06 01:03:54 +08:00
ayanamist 166392fe17 chore: sniffer replace domain only if domain is valid (#2122) 2025-06-24 21:44:26 +08:00
wwqgtxx 213d80c1e2 fix: quic sniffer should consider skipDomain 2025-05-28 10:06:53 +08:00
wwqgtxx 1db89da122 fix: quic sniffer should not replace domain when no valid host is read 2025-05-28 09:22:28 +08:00
wwqgtxx 689c58f661 chore: clear dstIP when overrideDest in sniffer 2025-05-27 22:47:21 +08:00
wwqgtxx a1c7881229 chore: rebuild udp dns resolve
The DNS resolution of the overall UDP part has been delayed to the connection initiation stage. During the rule matching process, it will only be triggered when the IP rule without no-resolve is matched.

For direct and wireguard outbound, the same logic as the TCP part will be followed, that is, when direct-nameserver (or DNS configured by wireguard) exists, the result of the matching process will be discarded and the domain name will be re-resolved. This re-resolution logic is only effective for fakeip.

For reject and DNS outbound, no resolution is required.

For other outbound, resolution will still be performed when the connection is initiated, and the domain name will not be sent directly to the remote server at present.
2025-05-27 10:45:26 +08:00
wwqgtxx fe01033efe chore: quic sniffer should use the exact length of crypto stream when assembling 2025-04-12 22:27:07 +08:00
wwqgtxx 1e22f4daa9 chore: reduce data copying in quic sniffer and better handle data fragmentation and overlap 2025-03-14 13:14:42 +08:00
wwqgtxx a7a796bb30 chore: cleanup quic sniff's code 2025-03-13 16:29:07 +08:00
5aaee9 801f3c35ce feat: support sniff quic fragment data (#1899) 2025-03-13 13:19:36 +08:00
wwqgtxx 7ff046a455 chore: modify UDPSniff's function signature to prepare for its ability to handle multiple packets. 2025-03-13 08:52:27 +08:00
tnextday 192d769f75 chore: ensure forced domains are always sniffed (#1793)
When a domain matches forceDomain:
- SkipList is not checked
- Failed attempts are not cached
- Sniffing is attempted every time

This ensures forced domains are always sniffed regardless of previous failures.
2025-01-16 10:17:32 +08:00
laburaps c7fc93df37 fix: the TLS Sniffer fails when the length of the ClientHello packet exceeds the TCP MSS (#1711)
* chore: add uniformly formatted debug info to sniffDomain

* fix: when data is not enough, attempt to peek more data and retry

* chore: reduce debug info of sniffDomain
2024-12-12 19:02:34 +08:00
laburaps 5d9d8f4d3b fix: check whether the dst port is within the specified range (#1706) 2024-12-10 16:15:08 +08:00
wwqgtxx 4fecf68b8b chore: add sourceGeoIP and sourceIPASN to metadata 2024-08-28 12:25:45 +08:00
wwqgtxx 8483178524 feat: sniff add skip-src-address and skip-dst-address 2024-08-27 20:33:43 +08:00
wwqgtxx 7fd0467aef feat: sniffer's force-domain and skip-domain support rule-set: and geosite: 2024-08-14 23:29:53 +08:00
wwqgtxx 4eb13a73bf fix: wrong usage of RLock 2024-07-22 09:57:57 +08:00
xishang0128 c504985b99 chore: Adjust sniff logs 2024-05-19 19:35:12 +08:00
Larvan2 1a0932c210 feat: support ARC for DNS cache 2023-12-03 08:37:05 +08:00
wwqgtxx 17c9d507be chore: hello mihomo 2023-11-03 21:58:21 +08:00
xishang0128 0d3197e437 chore: fix sniffer log error 2023-10-20 22:36:29 +08:00
wwqgtxx ea7e15b447 chore: decrease memory copy in quic sniffer 2023-10-19 23:51:37 +08:00
wwqgtxx 8e637a2ec7 chore: code cleanup 2023-10-19 20:44:49 +08:00
5aaee9 de90c276af feat(sniffer): add quic sniffer 2023-10-19 18:30:20 +08:00
Kiva 67d7e53f7a feat: recovering preHandleMetadata failure from sniffing (#769) 2023-09-24 19:27:55 +08:00
wwqgtxx e2e0fd4eba chore: using uint16 for ports in Metadata 2023-08-09 13:51:02 +08:00
3ef81afc76 [Feature] Proxy stores delay data of different URLs. And supports specifying different test URLs and expected statue by group (#588)
Co-authored-by: Larvan2 <78135608+Larvan2@users.noreply.github.com>
Co-authored-by: wwqgtxx <wwqgtxx@gmail.com>
2023-06-04 11:51:30 +08:00
Skyxim 7513761540 fix: not match top domain 2023-04-20 05:45:22 +00:00
Skyxim cfd03a99c2 feat: nameserver-policy support use rule-providers and reduce domain-set memory 2023-04-01 11:53:39 +08:00
wwqgtxx 75680c5866 chore: use early conn to support real ws 0-rtt 2023-02-24 09:54:54 +08:00
Skyxim 4643b5835e chore: setting sniffHost value 2023-02-10 13:01:53 +08:00
Skyxim c83eb2e0c9 chore: adjust log 2023-02-07 21:29:40 +08:00
Skyxim 096bb8d439 feat: add override-destination for sniffer 2023-01-23 14:08:11 +08:00