go-ping / ping

ICMP Ping library for Go
MIT License
1.31k stars 344 forks source link

Add ability to set outgouing interface (only Linux support) #203

Closed TimofeyAf closed 2 years ago

TimofeyAf commented 2 years ago

Hello,

I tried to implement useful feature - send packets from specific network interface. This feature is platform specific (depend on syscall.BindToDevice). Hoping I did it correctly. Test successfully passed on Linux OS.

Thanks!