summaryrefslogtreecommitdiffstats
path: root/pacredir.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-26 00:06:57 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-10-26 00:06:57 +0200
commitca0df973ad779f262ab835d05eab745d300d4756 (patch)
treee05c3cf97867c15f682afef9ea99d08a050b026d /pacredir.c
parent6db7f8e7773a74cfa04c3c1a7cc47b4f61057825 (diff)
downloadpacredir-ca0df973ad779f262ab835d05eab745d300d4756.tar.gz
pacredir-ca0df973ad779f262ab835d05eab745d300d4756.tar.zst
use port reported by avahi, not anything hardcoded
Diffstat (limited to 'pacredir.c')
-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;