Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix SRV mirroring support not actually looking up SRV record
Bryan Drewery committed 13 years ago
commit 3736e04d4ac850215f7af893b644c17453e184d9
parent fa26e3d
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;