1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-22 05:40:10 +00:00

if no mlat return port is defined in ULTRAFEEDER_CONFIG, then still send results to MLAT-Hub by default

This commit is contained in:
kx1t 2024-03-29 12:55:39 -04:00
parent 16ea7448ac
commit a407113f1c

View file

@ -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}")