close wg client

This commit is contained in:
Callan Bryant 2020-03-04 21:18:34 +00:00
parent f4a41b5c42
commit ccc45f8368
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA

1
up.go
View File

@ -48,6 +48,7 @@ func CreateInterface(conf *DsnetConfig) {
wg, err := wgctrl.New()
check(err)
defer wg.Close()
err = wg.ConfigureDevice(conf.InterfaceName, wgConfig)