aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pacredir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index 2025f04..3805623 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -78,7 +78,7 @@ static void resolve_callback(AvahiServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIn
}
printf("Adding host: %s, port %d\n", host, port);
tmphosts->host = strdup(host);
- tmphosts->port = 15678;
+ tmphosts->port = port;
tmphosts->next = realloc(tmphosts->next, sizeof(struct hosts));
tmphosts = tmphosts->next;
tmphosts->host = NULL;