initial: ZeroTier-like P2P mesh VPN server with multi-tenant Web UI
This commit is contained in:
21
internal/tap/tap_stub.go
Normal file
21
internal/tap/tap_stub.go
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user