Skip to content

Commit

Permalink
app: hotfix (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn authored Apr 20, 2023
1 parent 958109e commit b58874c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cmd/goflow2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,12 @@ func main() {
}
err = sSFlow.FlowRoutine(*Workers, hostname, int(port), *ReusePort)
} else if listenAddrUrl.Scheme == "netflow" {
sNF := &utils.StateNetFlow{
Format: formatter,
Transport: transporter,
Logger: log.StandardLogger(),
Config: config,
TemplateSystem: templateSystem,
}
sNF := utils.NewStateNetFlow()
sNF.Format = formatter
sNF.Transport = transporter
sNF.Logger = log.StandardLogger()
sNF.Config = config
sNF.TemplateSystem = templateSystem
err = sNF.FlowRoutine(*Workers, hostname, int(port), *ReusePort)
} else if listenAddrUrl.Scheme == "nfl" {
sNFL := &utils.StateNFLegacy{
Expand Down

0 comments on commit b58874c

Please sign in to comment.