tun: remove TUN prefix from types to reduce stutter elsewhere
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
3371f8dac6
commit
1f48971a80
10 changed files with 66 additions and 67 deletions
2
main.go
2
main.go
|
|
@ -125,7 +125,7 @@ func main() {
|
|||
|
||||
// open TUN device (or use supplied fd)
|
||||
|
||||
tun, err := func() (tun.TUNDevice, error) {
|
||||
tun, err := func() (tun.Device, error) {
|
||||
tunFdStr := os.Getenv(ENV_WG_TUN_FD)
|
||||
if tunFdStr == "" {
|
||||
return tun.CreateTUN(interfaceName, device.DefaultMTU)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue