initial: ZeroTier-like P2P mesh VPN server with multi-tenant Web UI

This commit is contained in:
xieyao
2026-06-17 03:50:23 +08:00
commit ee5f036325
74 changed files with 9517 additions and 0 deletions

21
internal/tap/tap_stub.go Normal file
View File

@@ -0,0 +1,21 @@
//go:build !linux
package tap
import "fmt"
func openTap(_ string, _ int) (*Interface, error) {
return nil, fmt.Errorf("TAP devices are only supported on Linux")
}
func readBuf(_ int, _ []byte) (int, error) {
return 0, fmt.Errorf("not supported")
}
func writeBuf(_ int, _ []byte) (int, error) {
return 0, fmt.Errorf("not supported")
}
func closeFD(_ int) error {
return fmt.Errorf("not supported")
}