* Fix a bug where avahi-publish-service ignores the port - Thanks to
authorTrent Lloyd <lathiat@bur.st>
Wed, 11 Jan 2006 13:33:59 +0000 (13:33 +0000)
committerTrent Lloyd <lathiat@bur.st>
Wed, 11 Jan 2006 13:33:59 +0000 (13:33 +0000)
   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

index 9d3e53c..9ca2df2 100644 (file)
@@ -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]);