From a407113f1cb7bc9f9f86003c0a52766ec26f75b5 Mon Sep 17 00:00:00 2001 From: kx1t Date: Fri, 29 Mar 2024 12:55:39 -0400 Subject: [PATCH] if no mlat return port is defined in `ULTRAFEEDER_CONFIG`, then still send results to MLAT-Hub by default --- rootfs/etc/s6-overlay/scripts/mlat-client | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/s6-overlay/scripts/mlat-client b/rootfs/etc/s6-overlay/scripts/mlat-client index 96ae611..48187d2 100755 --- a/rootfs/etc/s6-overlay/scripts/mlat-client +++ b/rootfs/etc/s6-overlay/scripts/mlat-client @@ -147,8 +147,12 @@ do servername=${params[0]} - # add return port: - [[ -n "${return_port_arg}" ]] && MLAT_PARAM+=("--results beast,listen,${return_port_arg}") || true + # add return port. If none is defined, send data to the MLAT: + if [[ -n "${return_port_arg}" ]] && ! chk_disabled "${return_port_arg}"; then + MLAT_PARAM+=("--results beast,listen,${return_port_arg}") + elif ! chk_disabled "${return_port_arg}"; then + MLAT_PARAM+=("--results beast,connect,localhost:31004") + fi # add input-connect to the param array: MLAT_PARAM+=(--input-connect "${input_connect_arg:-localhost:30005}")