fakeudp_other.go 197 B

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