From 747ca71c928cb0af5490d9def3413a3210dcfa65 Mon Sep 17 00:00:00 2001 From: Wilco Baan Hofman Date: Mon, 31 Jan 2022 19:40:48 +0100 Subject: [PATCH] Add different 'registration' message --- siahsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/siahsd.c b/siahsd.c index 6ef0d0c..198716a 100644 --- a/siahsd.c +++ b/siahsd.c @@ -227,7 +227,7 @@ int main(int argc, char **argv) { pkt->device, pkt->prom, pkt->message, inet_ntoa(from.sin_addr), src_port); /* Handle registrations, reconnects and messages */ - if (strcmp(pkt->message, "REGISTRATION REQUEST") == 0) { + if (strcmp(pkt->message, "REGISTRATION REQUEST") == 0 || strcmp(pkt->message, "registration") == 0) { /* XXX I'm sending this to this very same socket now. This should be used as a dispatcher */ reply_message = talloc_asprintf(pkt, "REGISTRATION RENEWAL AT PORT %05d", conf->siahs_port);