Skip to content

Commit

Permalink
Merge pull request netobserv#2 from lbausch/patch-1
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
nerdalert authored Oct 31, 2017
2 parents 6ddf70f + 3688f1e commit a1cf3ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nflow-generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {
}
conn, err := net.DialUDP("udp", nil, udpAddr)
if err != nil {
log.Fatal("Error connectiong to the target collector: ", err)
log.Fatal("Error connecting to the target collector: ", err)
}
log.Infof("sending netflow data to a collector ip: %s and port: %s. \n"+
"Use ctrl^c to terminate the app.", opts.CollectorIP, opts.CollectorPort)
Expand All @@ -78,14 +78,14 @@ func main() {
buffer := BuildNFlowPayload(data)
_, err := conn.Write(buffer.Bytes())
if err != nil {
log.Fatal("Error connectiong to the target collector: ", err)
log.Fatal("Error connecting to the target collector: ", err)
}
} else {
data := GenerateNetflow(16)
buffer := BuildNFlowPayload(data)
_, err := conn.Write(buffer.Bytes())
if err != nil {
log.Fatal("Error connectiong to the target collector: ", err)
log.Fatal("Error connecting to the target collector: ", err)
}
}
// add some periodic spike data
Expand Down

0 comments on commit a1cf3ee

Please sign in to comment.