diff options
author | Christian Hesse <mail@eworm.de> | 2013-10-26 00:06:57 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-10-26 00:06:57 +0200 |
commit | ca0df973ad779f262ab835d05eab745d300d4756 (patch) | |
tree | e05c3cf97867c15f682afef9ea99d08a050b026d /pacredir.c | |
parent | 6db7f8e7773a74cfa04c3c1a7cc47b4f61057825 (diff) | |
download | paccache-ca0df973ad779f262ab835d05eab745d300d4756.tar.gz paccache-ca0df973ad779f262ab835d05eab745d300d4756.tar.zst |
use port reported by avahi, not anything hardcoded
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |