mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-12-01 17:02:33 +00:00
18 lines
319 B
Go
18 lines
319 B
Go
//go:build !darwin && !linux
|
|
|
|
package internal
|
|
|
|
import (
|
|
"fmt"
|
|
"net"
|
|
)
|
|
|
|
func bindPacketConnToSourceDevice(conn net.PacketConn, ipVersion int, device string) error {
|
|
_ = conn
|
|
_ = ipVersion
|
|
if device != "" {
|
|
return fmt.Errorf("binding to source device not supported on this platform: %s", device)
|
|
}
|
|
return nil
|
|
}
|