From ca0df973ad779f262ab835d05eab745d300d4756 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 26 Oct 2013 00:06:57 +0200 Subject: use port reported by avahi, not anything hardcoded --- pacredir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pacredir.c') 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; -- cgit v1.2.3-70-g09d2