add new files for compat layer

This commit is contained in:
Ryan Huber
2025-11-04 04:10:51 +00:00
parent fd1c52127f
commit 608904b9dd
15 changed files with 2565 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
//go:build !linux || android || e2e_testing
package udp
import (
"fmt"
"net/netip"
"github.com/sirupsen/logrus"
)
// NewWireguardListener is only available on Linux builds.
func NewWireguardListener(*logrus.Logger, netip.Addr, int, bool, int) (Conn, error) {
return nil, fmt.Errorf("wireguard experimental UDP listener is only supported on Linux")
}