sing-box/protocol/direct
世界 9e27f3413b
Fix unbounded ICMP sockets in direct outbound
The direct outbound opens one ICMP socket for each echo flow. The
sockets were kept for one minute after the last packet and their
number was not limited, so scanning hosts through the outbound could
accumulate an unbounded number of sockets, which has been reported to
panic the kernel on macOS.

Close idle flows after ICMPTimeout as the stacks do, and keep at most
1024 flows, closing a least recently active one when the limit is
reached.
2026-11-16 06:46:49 +00:00
..
inbound.go Refactor lifecycle to scoped cleanup 2026-10-09 12:36:03 +08:00
outbound.go Fix unbounded ICMP sockets in direct outbound 2026-11-16 06:46:49 +00:00