fix: extract constants from iface to iface_configuration

This commit is contained in:
braginini 2021-06-18 13:10:32 +02:00
parent aa854c5899
commit 021092800b
2 changed files with 1 additions and 5 deletions

View File

@ -9,11 +9,6 @@ import (
"golang.zx2c4.com/wireguard/tun"
)
const (
defaultMTU = 1280
WgPort = 51820
)
// Saves tun device object - is it required?
var tunIface tun.Device

View File

@ -11,6 +11,7 @@ import (
const (
defaultMTU = 1280
WgPort = 51820
)
// ConfigureWithKeyGen Extends the functionality of Configure(iface string, privateKey string) by generating a new Wireguard private key