v-byte-cpu / sx

:vulcan_salute: Fast, modern, easy-to-use network scanner
MIT License
1.44k stars 109 forks source link

afpacket: fix NewPacketSource params GOOS!=linux #120

Closed MrGossett closed 2 years ago

MrGossett commented 2 years ago

The signature of afpacket.NewPacketSource was updated in readwriter.go (29ca59d5) for GOOS=linux, but the signature for that same function in readwriter_other.go for GOOS!=linux was not updated to match. This causes a build failure when GOOS!=linux. The build failure is not critical since only GOOS=linux is supported .

v-byte-cpu commented 2 years ago

You are absolutely right. Thanks for your help.