Files
2dust_v2rayN/v2rayN
hyjhyj111 ee7e21268a Fix TUN core elevation: decide sudo from the config context snapshot (#9830)
CoreManager.RunProcess decided sudo elevation from the live mutable
_config.TunModeItem.EnableTun while the launched config was generated
from the immutable CoreConfigContext snapshot. If the TUN state changed
while a reload was in flight, a core whose config contains a TUN
inbound could launch without elevation and die within the 100ms health
check ("Failed to run core"), with no stderr shown.

The elevation decision now follows context.IsTunEnabled /
preContext.IsTunEnabled, so the generated config and the launch mode
always agree. With legacy TUN protect, the sing-box pre-core hosting
TUN is elevated and the main core no longer runs as root needlessly.
2026-07-26 21:24:11 +08:00
..
2025-08-17 14:12:40 +08:00
2026-04-26 19:24:57 +08:00
2026-07-26 21:07:36 +08:00
2026-07-26 21:07:36 +08:00
2026-07-24 16:57:53 +08:00
2026-06-26 17:30:28 +08:00
2026-06-26 17:30:28 +08:00