Skip to content

Commit

Permalink
fix: extract constants from iface to iface_configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini committed Jun 18, 2021
1 parent aa854c5 commit 0210928
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions iface/iface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions iface/iface_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0210928

Please sign in to comment.