feature: add stop handling for engine

This commit is contained in:
braginini
2021-06-21 11:18:03 +02:00
parent 74355a2292
commit 8088c7a591
4 changed files with 26 additions and 2 deletions
+5
View File
@@ -19,6 +19,11 @@ const (
// Saves tun device object - is it required?
var tunIface tun.Device
// Delete deletes an existing Wireguard interface
func Delete() error {
return tunIface.Close()
}
// Create Creates a new Wireguard interface, sets a given IP and brings it up.
// Will reuse an existing one.
func Create(iface string, address string) error {