Batch wireguard update operations

This commit is contained in:
Viktor Liu
2025-07-22 14:35:03 +02:00
parent 86c16cf651
commit 036a3020fe
6 changed files with 364 additions and 4 deletions

View File

@@ -1,8 +1,6 @@
package iface
import (
"fmt"
)
import "fmt"
// CreateOnAndroid creates a new Wireguard interface, sets a given IP and brings it up.
// Will reuse an existing one.
@@ -15,6 +13,7 @@ func (w *WGIface) CreateOnAndroid(routes []string, dns string, searchDomains []s
return err
}
w.configurer = cfgr
w.batcher = NewWGBatcher(cfgr)
return nil
}