source_forging.go 220 B

1234567891011
  1. // +build !linux
  2. package udp
  3. import (
  4. "net"
  5. )
  6. func TransmitSocket(src net.Addr, dst net.Addr) (net.Conn, error) {
  7. return nil, newError("forging source address is not supported on non-Linux platform.").AtWarning()
  8. }