Update 'devices.go'
This commit is contained in:
parent
13742efcf5
commit
cb94c05d35
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ func DevicesCreate(device Device) (error) {
|
||||||
// Create IP Device
|
// Create IP Device
|
||||||
la := netlink.NewLinkAttrs()
|
la := netlink.NewLinkAttrs()
|
||||||
la.Name = device.Name
|
la.Name = device.Name
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func convertToDevice(device *wgtypes.Device) (Device, error) {
|
func convertToDevice(device *wgtypes.Device) (Device, error) {
|
||||||
|
|
Loading…
Reference in a new issue