Quick hack until I can handle multiple KISS TCP ports properly.

This commit is contained in:
wb2osz 2021-01-04 21:25:49 -05:00
parent 7ac1262fdf
commit 667e9caaf2
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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);