diff --git a/app/tun/device/device.go b/app/tun/device/device.go index ec4cd0b21..2bbb72802 100644 --- a/app/tun/device/device.go +++ b/app/tun/device/device.go @@ -16,4 +16,4 @@ type Options struct { MTU uint32 } -type DeviceCreator func(Options) (Device, error) +type DeviceConstructor func(Options) (Device, error) diff --git a/app/tun/tun.go b/app/tun/tun.go index b78787ef0..b40674e66 100644 --- a/app/tun/tun.go +++ b/app/tun/tun.go @@ -31,8 +31,8 @@ func (t *TUN) Type() interface{} { } func (t *TUN) Start() error { - DeviceCreator := tun.New - device, err := DeviceCreator(device.Options{ + DeviceConstructor := tun.New + device, err := DeviceConstructor(device.Options{ Name: t.config.Name, MTU: t.config.Mtu, })