From ec90edcd8db077ead144be3a39455735dd4d9229 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Tue, 8 Sep 2020 23:21:34 +0800 Subject: [PATCH] Simpify stratux service init --- net_io.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net_io.c b/net_io.c index c65a43c..14bceda 100644 --- a/net_io.c +++ b/net_io.c @@ -269,10 +269,8 @@ void modesInitNet(void) { s = serviceInit("Basestation TCP output", &Modes.sbs_out, send_sbs_heartbeat, READ_MODE_IGNORE, NULL, NULL); serviceListen(s, Modes.net_bind_address, Modes.net_output_sbs_ports); - if (Modes.net_output_stratux_ports) { - s = serviceInit("Stratux TCP output", &Modes.stratux_out, send_stratux_heartbeat, READ_MODE_IGNORE, NULL, NULL); - serviceListen(s, Modes.net_bind_address, Modes.net_output_stratux_ports); - } + s = serviceInit("Stratux TCP output", &Modes.stratux_out, send_stratux_heartbeat, READ_MODE_IGNORE, NULL, NULL); + serviceListen(s, Modes.net_bind_address, Modes.net_output_stratux_ports); s = serviceInit("Raw TCP input", NULL, NULL, READ_MODE_ASCII, "\n", decodeHexMessage); serviceListen(s, Modes.net_bind_address, Modes.net_input_raw_ports);