hotfix(vpn): inject cmder object for up/down commands and fix cleanup panic

This commit is contained in:
Quentin McGaw
2026-03-08 23:06:32 +00:00
parent 57c53bc19e
commit d98afce793
4 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func (l *Loop) Run(ctx context.Context, done chan<- struct{}) {
if settings.Type == vpn.OpenVPN {
vpnInterface = settings.OpenVPN.Interface
vpnRunner, connection, err = setupOpenVPN(ctx, l.fw,
l.openvpnConf, providerConf, settings, l.ipv6Supported, l.starter, subLogger)
l.openvpnConf, providerConf, settings, l.ipv6Supported, l.cmder, subLogger)
} else { // Wireguard
vpnInterface = settings.Wireguard.Interface
vpnRunner, connection, err = setupWireguard(ctx, l.netLinker, l.fw,