From 3b95a93e59997c56d75f26fffcdad5b9006d71c5 Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Wed, 11 Jan 2006 13:33:59 +0000 Subject: [PATCH] * Fix a bug where avahi-publish-service ignores the port - Thanks to Nicolas Aupetit for the report and fix. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1071 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-utils/avahi-publish.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/avahi-utils/avahi-publish.c b/avahi-utils/avahi-publish.c index 9d3e53c..9ca2df2 100644 --- a/avahi-utils/avahi-publish.c +++ b/avahi-utils/avahi-publish.c @@ -322,6 +322,8 @@ static int parse_command_line(Config *c, const char *argv0, int argc, char *argv fprintf(stderr, "Failed to parse port number: %s\n", argv[optind+2]); return -1; } + + c->port = p; for (i = optind+3; i < argc; i++) c->txt = avahi_string_list_add(c->txt, argv[i]); -- 2.39.5