Skip to content

Commit

Permalink
ntopng - correct netflow2ng port handling
Browse files Browse the repository at this point in the history
  • Loading branch information
litinoveweedle committed Dec 26, 2024
1 parent 80540c2 commit b135aab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ntopng/rootfs/etc/s6-overlay/s6-rc.d/netflow2ng/run
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ if bashio::var.is_empty "${netflow_port}"; then
bashio::log.warning
bashio::log.warning "Netflow collector port is not defined"
bashio::log.warning "Netflow will start only on localhost!"
bashio::log.warning "This is probably not something you want"
bashio::log.warning "as you won't be able to collect data from network!"
bashio::log.warning
options+=(--listen="127.0.0.1:$(bashio::config 'netflow_loc_port')")
options+=(--listen="127.0.0.1:2055")
else
options+=(--listen="0.0.0.0:2055")
options+=(--listen="0.0.0.0:$(bashio::config 'netflow_loc_port')")
fi

# Find the matching netflow log level
Expand Down

0 comments on commit b135aab

Please sign in to comment.