Files
gluetun/internal/tun/tun.go
Quentin McGaw 578ef768ab chore(all): return concrete types, accept interfaces
- Remove exported interfaces unused locally
- Define interfaces to accept arguments
- Return concrete types, not interfaces
2022-06-11 01:34:30 +00:00

14 lines
183 B
Go

package tun
import "golang.org/x/sys/unix"
type Tun struct {
mknod func(path string, mode uint32, dev int) (err error)
}
func New() *Tun {
return &Tun{
mknod: unix.Mknod,
}
}