* Improve data url subscription link processing
* consider disk persisted source as added by API and removeable
* feat: add Packet Bridge transport for iOS
* fix(tun): preserve inbound tag for packet encoding
* feat(tun): bypass packet encoding for selected UDP ports
* fix(tun): clean stale stream packetaddr entries
Close packetaddr dispatchers when their read workers terminate so the TUN
sorter removes stale source entries. Make dispatcher close idempotent and
interrupt packet links before taking the reader lock to avoid cleanup
deadlocks. Add regression coverage for stream termination, repeated close,
and recreation of the same source tuple.
* fix lint issue for tun, sub
* fix packet connection adaptor close processing
* Add socks5ify engineering command
(Machine assisted.)
* Add quiet and ipv4,ipv6 host, guest flag settings to engineering socks5ify command
(Machine assisted.)
* Fix lint errors
(Machine assisted.)
* fix typo in stun-nat-type-discovery command
* Add support for keep uid for socks5ify, this will make some application that designed to not run as root happy
* add webrtc tunnel support in v2ray
* add webrtc tunnel support in v2ray
* add webrtc tunnel support in v2ray
* add webrtc tunnel support in v2ray(fix lint)
* Add NAT Type Testing utility
* Add dualstack udp support for wireguard outbound
* tidy go.mod
* Do not include stun command on android by default
* fix lints
* add additional test when a secondary server was provided
* 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
* 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>
* Shadowsocks2022 Client Implementation Improvements
1. Added UDP Replay Detection
2. Added UDP Processor State Cache
3. Added More Detailed Output for Time Difference Error
4. Replaced Mutex with RWMutex for reduced lock contention
5. Added per server session tracking of decryption cache and anti-replay window
6. Adjust server session track time
7. Increase per session buffer to 128
8. Fix client crash when EIH is not enabled
9. Fix client log contains non-human-friendly content
10.Remove mark and remove for trackedSessions
11. Fixed packet size uint16 overflow issue