fakeudp_other.go 215 B

12345678910111213
  1. //go:build !linux
  2. // +build !linux
  3. package dokodemo
  4. import (
  5. "fmt"
  6. "net"
  7. )
  8. func FakeUDP(addr *net.UDPAddr, mark int) (net.PacketConn, error) {
  9. return nil, &net.OpError{Op: "fake", Err: fmt.Errorf("!linux")}
  10. }