Skip to content

Linux: disable drop interface #45

@avengermsoft

Description

@avengermsoft

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions