Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix SRV mirroring support not actually looking up SRV record
Bryan Drewery committed 13 years ago
commit 3736e04d4ac850215f7af893b644c17453e184d9
parent fa26e3dc6c0ed035e740555f9ff49bc999f5cb85
1 file changed +1 -1
modified libpkg/fetch.c
@@ -154,7 +154,7 @@ pkg_fetch_file_to_fd(const char *url, int dest, time_t t)
				snprintf(zone, sizeof(zone),
				    "_%s._tcp.%s", u->scheme, u->host);
				pthread_mutex_lock(&mirror_mtx);
-
				if (srv_mirrors != NULL)
+
				if (srv_mirrors == NULL)
					srv_mirrors = dns_getsrvinfo(zone);
				pthread_mutex_unlock(&mirror_mtx);
				srv_current = srv_mirrors;