Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: bound interface #85

Open
ruokeqx opened this issue Jan 2, 2024 · 1 comment
Open

feature request: bound interface #85

ruokeqx opened this issue Jan 2, 2024 · 1 comment

Comments

@ruokeqx
Copy link

ruokeqx commented Jan 2, 2024

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

@fjbotha
Copy link

fjbotha commented Dec 11, 2024

You should be able to configure Pinger.InterfaceName. It works on Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants