-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Hi.
An existing interface is specified using the interface-name
--interface-name opkgtun0
When I close usque, my interface (opkgtun0) is removed.
Please create a parameter responsible for deleting an existing interface.
func setDeviceOptions(fd uintptr, config Config) (err error) {
// set clear the persist flag
value := 0
if config.Persist {
value = 1
}
return ioctl(fd, syscall.TUNSETPERSIST, uintptr(value))
}
type PlatformSpecificParams struct {
// Persist specifies whether persistence mode for the interface device
// should be enabled or disabled.
Persist bool
}
Metadata
Metadata
Assignees
Labels
No labels