this is awful, but also it's about 20% better

This commit is contained in:
JackDoan
2025-11-08 14:57:33 -06:00
parent 1f043f84f3
commit 42591c2042
11 changed files with 427 additions and 19 deletions

View File

@@ -2,6 +2,7 @@ package overlay
import (
"fmt"
"io"
"net"
"net/netip"
@@ -12,6 +13,11 @@ import (
const DefaultMTU = 1300
type TunDev interface {
io.ReadWriteCloser
WriteMany([][]byte) (int, error)
}
// TODO: We may be able to remove routines
type DeviceFactory func(c *config.C, l *logrus.Logger, vpnNetworks []netip.Prefix, routines int) (Device, error)