diff options
| author | James O'Doherty <james@theodohertyfamily.com> | 2026-05-29 20:42:23 -0400 |
|---|---|---|
| committer | James O'Doherty <james@theodohertyfamily.com> | 2026-05-29 20:42:23 -0400 |
| commit | b7745456d67f48f56ba94e47946e40805b6ef1ee (patch) | |
| tree | 789516e8f6e95b712458ec66cd77366f9e4f3e26 /pkg/wgconf/wgconf.go | |
| parent | d4cec92f5690a60b3509ab718bdea72dc520110e (diff) | |
refactor: improve resource management and cleanup patterns
- Simplify namespace bootstrapping by introducing `prepareLauncher` helper
- Implement a cleanup stack in `StartTunnel` to ensure orderly resource release on error
- Streamline temporary file and mount lifecycles in `ConfigureResolvConf` and `BlockHostServices`
- Ensure `Tunnel.Close()` also closes the underlying TUN device
- Reduce redundant manual cleanup calls using defer-based error handling
Diffstat (limited to 'pkg/wgconf/wgconf.go')
0 files changed, 0 insertions, 0 deletions
