github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/proxy/dokodemo/fakeudp_other.go (about)

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