prometheus-community / pro-bing

A library for creating continuous probers
MIT License
291 stars 49 forks source link

feature request: bound interface #85

Open ruokeqx opened 6 months ago

ruokeqx commented 6 months ago

is it possible to provide some method to bind interface like ping do?

ping [-AaCDdfnoQqRrv] [-b boundif] 
     -b boundif
             Bind the socket to interface boundif for sending.  This option is an Apple addition.

use control function in ListenConfig is one option, but may need change x/icmp to net.ListenConfig