Skip to content

Commit

Permalink
Project Done.
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhan-uysal committed Jul 13, 2024
1 parent 040a22d commit 431527d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pingo/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (r *Request) Make(cancel context.CancelFunc, interval time.Duration) {
<-ticker.C
icmp := netcore.NewICMP(netcore.ControlKindEchoRequest, r.id, seq)
if err := unix.Sendto(r.fd, icmp.Marshal(), 0, &unix.SockaddrInet4{Addr: [4]byte(r.ip.To4())}); err != nil {
fmt.Printf("pingo.Make: Failed to send ICMP datagram: %v", err)
fmt.Printf("pingo.Make: Failed to send ICMP datagram: %v\n", err)
return
}
seq++
Expand Down

0 comments on commit 431527d

Please sign in to comment.