github.com/EagleQL/Xray-core@v1.4.3/proxy/dokodemo/fakeudp_other.go (about)

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