From b135aab0b25543e8de2a6fe363dcdb5d3a8de4f9 Mon Sep 17 00:00:00 2001 From: litinoveweedle <15144712+litinoveweedle@users.noreply.github.com> Date: Thu, 26 Dec 2024 10:19:11 +0100 Subject: [PATCH] ntopng - correct netflow2ng port handling --- ntopng/rootfs/etc/s6-overlay/s6-rc.d/netflow2ng/run | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ntopng/rootfs/etc/s6-overlay/s6-rc.d/netflow2ng/run b/ntopng/rootfs/etc/s6-overlay/s6-rc.d/netflow2ng/run index f80a427..6dcd83d 100755 --- a/ntopng/rootfs/etc/s6-overlay/s6-rc.d/netflow2ng/run +++ b/ntopng/rootfs/etc/s6-overlay/s6-rc.d/netflow2ng/run @@ -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