This commit is contained in:
2026-05-16 00:18:06 -03:00
commit 92941e68a2
66 changed files with 10352 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
//go:build !windows
package platformtun
import "strings"
type Logger interface {
Add(level, format string, args ...any)
}
func Prepare(device, interfaceName string, mtu int, logger Logger) (string, string, func(), error) {
device = strings.TrimSpace(device)
interfaceName = strings.TrimSpace(interfaceName)
return device, interfaceName, nil, nil
}