Pared::NetworkManager::WireguardScanner
Class methods
wg_runner
SourceInstance methods
interfaces
Returns nil when the kernel state cannot be read (wg missing, no permissions, runner failure) so callers can fail closed instead of treating an unreadable device set as an empty one.
Parses wg show all dump where each interface line carries five
fields and each peer line carries nine (interface name first). Peers
are collected per interface name and attached at the end so the
result never depends on array aliasing or line order.