From fbefda6103397613e9cb226c8cdea049e3fed016 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 22 Sep 2020 11:45:22 -0400 Subject: [PATCH] Avoid connecting to APRS-IS via UDP Avoid connecting to APRS-IS via UDP by filtering out getaddrinfo() results of SOCK_DGRAM type --- src/aprs_is.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aprs_is.c b/src/aprs_is.c index 68ef330..fa4da9b 100644 --- a/src/aprs_is.c +++ b/src/aprs_is.c @@ -89,6 +89,10 @@ static int aprs_is_connect(patty_ax25_aprs_is *aprs, } for (ai=ai0; ai; ai=ai->ai_next) { + if (ai->ai_socktype == SOCK_DGRAM) { + continue; + } + if ((aprs->fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)) < 0) {