go-ping / ping

ICMP Ping library for Go
MIT License
1.33k stars 345 forks source link

Lake of srcAddr to send icmp #174

Closed limbo127 closed 3 years ago

limbo127 commented 3 years ago

Hello, we need to set the addr source of the paquet, because we have a lot of ipv6 alias on interface, but we need to specify as

net.DialUDP("udp6", &addrsrc, &addrdst)

regards, Nicolas

CHTJonas commented 3 years ago

Can you not do this by setting pinger.Source? See docs.

limbo127 commented 3 years ago

Oh yes, sorry I do not seen that. Regards

Le ven. 30 juil. 2021 à 22:21, Charlie Jonas @.***> a écrit :

Can you not do this by setting pinger.Source? See docs https://pkg.go.dev/github.com/go-ping/ping#Pinger.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/go-ping/ping/issues/174#issuecomment-890133706, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMCNUEB354RKU7YHFW4GLTT2MCV3ANCNFSM5BIXQEBA .