From 709889dd5cb6514d6df8c4ac99c5ad448d445075 Mon Sep 17 00:00:00 2001 From: Karl Lehenbauer Date: Wed, 1 Oct 2014 10:02:40 -0500 Subject: [PATCH] Enable the correct number of net services in faup1090 faup1090 was using the wrong constant, MODES_NET_SERVICES_NUM, rather than FAUP_NET_SERVICES_NUM, so it ran off the end of an array binding random ports until failing when it tried to bind the FlightAware port a second time. Thanks to Oliver Jowett (github user "mutability") for the fix. --- faup1090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faup1090.c b/faup1090.c index 4e02411..8d693e4 100644 --- a/faup1090.c +++ b/faup1090.c @@ -178,7 +178,7 @@ void faupInitNet(void) { } #endif - for (j = 0; j < MODES_NET_SERVICES_NUM; j++) { + for (j = 0; j < FAUP_NET_SERVICES_NUM; j++) { services[j].enabled = (services[j].port != 0); if (services[j].enabled) { int s = anetTcpServer(Modes.aneterr, services[j].port, NULL);