github.com/moqsien/xraycore@v1.8.5/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  }