From 667e9caaf2df60284945ee88f53dab5ae1bbd38e Mon Sep 17 00:00:00 2001 From: wb2osz Date: Mon, 4 Jan 2021 21:25:49 -0500 Subject: [PATCH] Quick hack until I can handle multiple KISS TCP ports properly. --- src/dns_sd_avahi.c | 3 ++- src/dns_sd_macos.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dns_sd_avahi.c b/src/dns_sd_avahi.c index 81e9f19..37c5547 100644 --- a/src/dns_sd_avahi.c +++ b/src/dns_sd_avahi.c @@ -220,7 +220,8 @@ static void *avahi_mainloop(void *arg) void dns_sd_announce (struct misc_config_s *mc) { text_color_set(DW_COLOR_DEBUG); - kiss_port = mc->kiss_port; + //kiss_port = mc->kiss_port; // now an array. + kiss_port = mc->kiss_port[0]; // FIXME: Quick hack until I can handle multiple TCP ports properly. int error; diff --git a/src/dns_sd_macos.c b/src/dns_sd_macos.c index 27cca8c..d733a41 100644 --- a/src/dns_sd_macos.c +++ b/src/dns_sd_macos.c @@ -59,7 +59,8 @@ static void registerServiceCallBack(DNSServiceRef sdRef, DNSServiceFlags flags, void dns_sd_announce (struct misc_config_s *mc) { - int kiss_port = mc->kiss_port; + //int kiss_port = mc->kiss_port; // now an array. + int kiss_port = mc->kiss_port[0]; // FIXME: Quick hack until I can handle multiple TCP ports properly. if (mc->dns_sd_name[0]) { name = strdup(mc->dns_sd_name);